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 2013-10-23 09:19:52 +02:00 committed by Bård Skaflestad
parent c06a79f30b
commit cb89621813

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