Skip to content

Commit

Permalink
_build.sh: avoid -Bstatic for non-Windows [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Nov 7, 2024
1 parent faaf04d commit 606c67a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,11 @@ build_single_target() {
fi

if [ "${boringssl}" = '1' ]; then
_LDFLAGS_CXX_GLOBAL+=' -Wl,-Bstatic -lstdc++'
if [ "${_OS}" = 'win' ]; then
_LDFLAGS_CXX_GLOBAL+=' -Wl,-Bstatic -lstdc++'
else
_LDFLAGS_CXX_GLOBAL+=' -lstdc++'
fi
if [ "${_TOOLCHAIN}" = 'llvm-mingw' ]; then
_LDFLAGS_CXX_GLOBAL+=' -stdlib=libc++'
# to avoid:
Expand Down

0 comments on commit 606c67a

Please sign in to comment.