Browse Source

openssl: detect configuration changes and clean build tree accordingly (fixes #15067)

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

SVN-Revision: 39852
Felix Fietkau 12 năm trước cách đây
mục cha
commit
836e9fad45
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      package/libs/openssl/Makefile

+ 6 - 0
package/libs/openssl/Makefile

@@ -110,7 +110,13 @@ else
   endif
 endif
 
+STAMP_CONFIGURED := $(STAMP_CONFIGURED)_$(subst $(space),_,$(OPENSSL_OPTIONS))
+
 define Build/Configure
+	[ -f $(STAMP_CONFIGURED) ] || { \
+		rm -f $(PKG_BUILD_DIR)/*.so.* $(PKG_BUILD_DIR)/*.a; \
+		find $(PKG_BUILD_DIR) -name \*.o | xargs rm -f; \
+	}
 	(cd $(PKG_BUILD_DIR); \
 		./Configure $(OPENSSL_TARGET) \
 			--prefix=/usr \