summaryrefslogtreecommitdiff
path: root/package/libs
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-09 13:19:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-03-09 13:19:25 +0000
commit46c8633c451fa0efa345d4ce5316172108cd99f7 (patch)
tree12485489c954320fa94e9132c2dc7d760cbc943d /package/libs
parent6435b8bb27eaa3ba3d0320725e5ba8211b907e85 (diff)
downloadmtk-20170518-46c8633c451fa0efa345d4ce5316172108cd99f7.zip
mtk-20170518-46c8633c451fa0efa345d4ce5316172108cd99f7.tar.gz
mtk-20170518-46c8633c451fa0efa345d4ce5316172108cd99f7.tar.bz2
openssl: move make depend call to Build/Configure
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39851
Diffstat (limited to 'package/libs')
-rw-r--r--package/libs/openssl/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
index 19863fb..fe99a53 100644
--- a/package/libs/openssl/Makefile
+++ b/package/libs/openssl/Makefile
@@ -121,11 +121,6 @@ define Build/Configure
$(OPENSSL_NO_CIPHERS) \
$(OPENSSL_OPTIONS) \
)
-endef
-
-TARGET_CFLAGS += $(FPIC)
-
-define Build/Compile
# XXX: OpenSSL "make depend" will look for installed headers before its own,
# so remove installed stuff first
-$(SUBMAKE) -j1 clean-staging
@@ -134,6 +129,11 @@ define Build/Compile
OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \
$(OPENSSL_MAKEFLAGS) \
depend
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" \
ASFLAGS="$(TARGET_ASFLAGS) -c" \