diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-03-09 13:19:29 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-03-09 13:19:29 +0000 |
commit | f5a394b1192e5104aa4f43a17ca524d69ef5c2da (patch) | |
tree | 8163ac9edc2921613c621a3f9c9e49b3ef651cd8 /package | |
parent | 9455ab51714e1a904aeaa6e830c898a341209eca (diff) |
openssl: detect configuration changes and clean build tree accordingly (fixes #15067)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39852 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/libs/openssl/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index fe99a534b8..38679acb2b 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 \ |