Skip to content

Commit 12f951a

Browse files
committed
fix to place c++ options to the c++ variable
1 parent 689f51b commit 12f951a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -987,13 +987,13 @@ build_single_target() {
987987
fi
988988

989989
if [ "${boringssl}" = '1' ]; then
990-
_LDFLAGS_GLOBAL+=' -Wl,-Bstatic -lstdc++'
990+
_LDFLAGS_CXX_GLOBAL+=' -Wl,-Bstatic -lstdc++'
991991
if [ "${_TOOLCHAIN}" = 'llvm-mingw' ]; then
992-
_LDFLAGS_GLOBAL+=' -stdlib=libc++'
992+
_LDFLAGS_CXX_GLOBAL+=' -stdlib=libc++'
993993
# to avoid:
994994
# ld.lld: error: undefined symbol: _Unwind_Resume
995995
# >>> referenced by objects.a(args.cc.obj):[...]
996-
_LDFLAGS_GLOBAL+=' -lunwind'
996+
_LDFLAGS_CXX_GLOBAL+=' -lunwind'
997997
fi
998998
fi
999999

0 commit comments

Comments
 (0)