Skip to content

Commit 1277546

Browse files
committed
_build.sh: avoid -Bstatic for non-windows (for C++ runtime)
1 parent 142e212 commit 1277546

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,11 @@ build_single_target() {
987987
fi
988988

989989
if [ "${boringssl}" = '1' ]; then
990-
_LDFLAGS_CXX_GLOBAL+=' -Wl,-Bstatic -lstdc++'
990+
if [ "${_OS}" = 'win' ]; then
991+
_LDFLAGS_CXX_GLOBAL+=' -Wl,-Bstatic -lstdc++'
992+
else
993+
_LDFLAGS_CXX_GLOBAL+=' -lstdc++'
994+
fi
991995
if [ "${_TOOLCHAIN}" = 'llvm-mingw' ]; then
992996
_LDFLAGS_CXX_GLOBAL+=' -stdlib=libc++'
993997
# to avoid:

0 commit comments

Comments
 (0)