diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-09-10 12:09:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-09-10 12:09:13 +0000 |
commit | 7e6b26a1f35039adff72b5dab82f80653d54c2ca (patch) | |
tree | 20f09046141c99ec3a3ef978f3deb4b0e9e485d3 /package/libs/openssl/Makefile | |
parent | 0f3134216d06ff1c80212c9991d2910e1c1201d6 (diff) | |
download | upstream-7e6b26a1f35039adff72b5dab82f80653d54c2ca.tar.gz upstream-7e6b26a1f35039adff72b5dab82f80653d54c2ca.tar.bz2 upstream-7e6b26a1f35039adff72b5dab82f80653d54c2ca.zip |
openssl: add parallel build support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37927
Diffstat (limited to 'package/libs/openssl/Makefile')
-rw-r--r-- | package/libs/openssl/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index 8f4f93d852..a280ff419c 100644 --- a/package/libs/openssl/Makefile +++ b/package/libs/openssl/Makefile @@ -12,6 +12,8 @@ PKG_VERSION:=1.0.1e PKG_RELEASE:=2 PKG_USE_MIPS16:=0 +PKG_BUILD_PARALLEL:=1 + PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.openssl.org/source/ \ ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.openssl.org/source \ @@ -127,12 +129,12 @@ define Build/Compile # XXX: OpenSSL "make depend" will look for installed headers before its own, # so remove installed stuff first -$(SUBMAKE) -j1 clean-staging - $(MAKE) -C $(PKG_BUILD_DIR) \ + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ MAKEDEPPROG="$(TARGET_CROSS)gcc" \ OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \ $(OPENSSL_MAKEFLAGS) \ depend - $(_SINGLE)$(MAKE) -C $(PKG_BUILD_DIR) \ + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" \ ASFLAGS="$(TARGET_ASFLAGS) -c" \ AR="$(TARGET_CROSS)ar r" \ @@ -140,7 +142,7 @@ define Build/Compile OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \ $(OPENSSL_MAKEFLAGS) \ all - $(MAKE) -C $(PKG_BUILD_DIR) \ + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" \ ASFLAGS="$(TARGET_ASFLAGS) -c" \ AR="$(TARGET_CROSS)ar r" \ @@ -150,7 +152,7 @@ define Build/Compile build-shared # Work around openssl build bug to link libssl.so with libcrypto.so. -rm $(PKG_BUILD_DIR)/libssl.so.*.*.* - $(MAKE) -C $(PKG_BUILD_DIR) \ + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" \ OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \ $(OPENSSL_MAKEFLAGS) \ |