Only add option for shared libraries once
The way the test was done previously, it was added for *every* option after `--enable-shared`, not only that one.
This commit is contained in:
1 parent
e02a0b1139
commit
d10508b760
1 file changed
+2
Vendored
+2
@@ -424,6 +424,8 @@ for OPT in "$@"; do
|
||||
esac
|
||||
test -n "${shared}" && \
|
||||
FEATURES="${FEATURES} -DBUILD_SHARED_LIBS:BOOL=${shared}"
|
||||
# once we have added this, reset so we don't add again for next opt
|
||||
shared=""
|
||||
;;
|
||||
*)
|
||||
# remove everything *after* the equal sign
|
||||
|
||||
Reference in new issue
Block a user