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 | d4a372f076273a7ca8001a7e40e3edaaeaca38f3 (patch) | |
tree | eca1bd3a891b898f630b0bd72ad104c1ece0578e /package/libs/openssl/Makefile | |
parent | 54a1b057589d2cb9f6597f7bec778b48fe50ec10 (diff) | |
download | upstream-d4a372f076273a7ca8001a7e40e3edaaeaca38f3.tar.gz upstream-d4a372f076273a7ca8001a7e40e3edaaeaca38f3.tar.bz2 upstream-d4a372f076273a7ca8001a7e40e3edaaeaca38f3.zip |
openssl: add parallel build support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37927 3c298f89-4303-0410-b956-a3cf2f4a3e73
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) \ |