Allow passing --enable-shared/static to build-libcxx.sh

These are the default already, but by allowing them as options, it becomes
easier to potentially change the default behaviour.
This commit is contained in:
Martin Storsjö committed 2018-10-02 21:34:54 +03:00
1 parent d379cc8b21
commit 784c15f9b9
1 file changed
+4
+4
View File
@@ -8,8 +8,12 @@ BUILD_SHARED=1
while [ $# -gt 0 ]; do
if [ "$1" = "--disable-shared" ]; then
BUILD_SHARED=
elif [ "$1" = "--enable-shared" ]; then
BUILD_SHARED=1
elif [ "$1" = "--disable-static" ]; then
BUILD_STATIC=
elif [ "$1" = "--enable-static" ]; then
BUILD_STATIC=1
else
PREFIX="$1"
fi