From 2a5f0502d6963ff2e19bb1b861cbba00402db6ec Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 9 Mar 2014 13:19:25 +0000 Subject: [PATCH] openssl: move make depend call to Build/Configure Signed-off-by: Felix Fietkau SVN-Revision: 39851 --- package/libs/openssl/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index 19863fbf58..fe99a534b8 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" \ -- 2.30.2