Skip to content

Commit 28b4677

Browse files
committed
configure-shared
1 parent 9ce6890 commit 28b4677

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

external_deps/build.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,20 @@ download_extract() {
141141
configure_build() {
142142
local configure_args=(--disable-shared --enable-static)
143143

144+
configure_args=()
145+
144146
if [ "${LIBS_SHARED}" = 'ON' ]
145147
then
146-
configure_args=(--enable-shared --disable-static)
148+
configure_args+=(--enable-shared)
149+
else
150+
configure_args+=(--disable-shared)
151+
fi
152+
153+
if [ "${LIBS_STATIC}" = 'ON' ]
154+
then
155+
configure_args+=(--enable-static)
156+
else
157+
configure_args+=(--disable-static)
147158
fi
148159

149160
./configure \

0 commit comments

Comments
 (0)