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:
Roland Kaufmann committed 2013-10-23 09:22:33 +02:00
1 parent e02a0b1139
commit d10508b760
1 file changed
+2
+2
View File
@@ -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