summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-09 13:19:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-03-09 13:19:29 +0000
commit836e9fad4593ccf3df224163bcbb14813975fbd0 (patch)
tree12d7d51801b769a889543c191e75aaf48d9e25d5 /package
parent46c8633c451fa0efa345d4ce5316172108cd99f7 (diff)
downloadmtk-20170518-836e9fad4593ccf3df224163bcbb14813975fbd0.zip
mtk-20170518-836e9fad4593ccf3df224163bcbb14813975fbd0.tar.gz
mtk-20170518-836e9fad4593ccf3df224163bcbb14813975fbd0.tar.bz2
openssl: detect configuration changes and clean build tree accordingly (fixes #15067)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39852
Diffstat (limited to 'package')
-rw-r--r--package/libs/openssl/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
index fe99a53..38679ac 100644
--- a/package/libs/openssl/Makefile
+++ b/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 \