Przeglądaj źródła

openssl: move make depend call to Build/Configure

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 39851
Felix Fietkau 12 lat temu
rodzic
commit
46c8633c45
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      package/libs/openssl/Makefile

+ 5 - 5
package/libs/openssl/Makefile

@@ -121,11 +121,6 @@ define Build/Configure
 			$(OPENSSL_NO_CIPHERS) \
 			$(OPENSSL_NO_CIPHERS) \
 			$(OPENSSL_OPTIONS) \
 			$(OPENSSL_OPTIONS) \
 	)
 	)
-endef
-
-TARGET_CFLAGS += $(FPIC)
-
-define Build/Compile
 	# XXX: OpenSSL "make depend" will look for installed headers before its own,
 	# XXX: OpenSSL "make depend" will look for installed headers before its own,
 	# so remove installed stuff first
 	# so remove installed stuff first
 	-$(SUBMAKE) -j1 clean-staging
 	-$(SUBMAKE) -j1 clean-staging
@@ -134,6 +129,11 @@ define Build/Compile
 		OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \
 		OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \
 		$(OPENSSL_MAKEFLAGS) \
 		$(OPENSSL_MAKEFLAGS) \
 		depend
 		depend
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Compile
 	+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
 	+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
 		CC="$(TARGET_CC)" \
 		CC="$(TARGET_CC)" \
 		ASFLAGS="$(TARGET_ASFLAGS) -c" \
 		ASFLAGS="$(TARGET_ASFLAGS) -c" \