Skip to content

Commit 0bee112

Browse files
committed
shared-libs
1 parent 12d46c7 commit 0bee112

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

external_deps/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ LD='ld'
4949
AR='ar'
5050
RANLIB='ranlib'
5151
LIBS_SHARED='OFF'
52+
LIBS_STATIC='OFF'
5253
CMAKE_TOOLCHAIN=''
5354
# Always reset flags, we heavily cross-compile and must not inherit any stray flag
5455
# from environment.
@@ -550,7 +551,7 @@ build_jpeg() {
550551

551552
cmake_build \
552553
-DENABLE_SHARED="${LIBS_SHARED}" \
553-
-DCMAKE_SYSTEM_NAME="${SYSTEM_NAME}" \
554+
-DCMAKE_SYSTEM_NAME="${LIBS_STATIC}" \
554555
-DCMAKE_SYSTEM_PROCESSOR="${SYSTEM_PROCESSOR}" \
555556
-DWITH_JPEG8=1
556557
}
@@ -1149,6 +1150,7 @@ common_setup_arch() {
11491150
# supports %lld since Visual Studio 2013.
11501151
common_setup_msvc() {
11511152
LIBS_SHARED='ON'
1153+
LIBS_STATIC='OFF'
11521154
# Libtool bug prevents -static-libgcc from being set in LDFLAGS
11531155
CC="${HOST}-gcc -static-libgcc"
11541156
CXX="${HOST}-g++ -static-libgcc"

0 commit comments

Comments
 (0)