Skip to content

Commit

Permalink
fix: remove unused -static-libgcc MinGW linker arg (#6535)
Browse files Browse the repository at this point in the history
This PR avoids a linker warning on Windows.

The argument may have been superfluous ever since the initial
implementation.

(cherry picked from commit 76f883b)
  • Loading branch information
Kha authored and kim-em committed Jan 6, 2025
1 parent 0c9a488 commit 3202715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/prepare-llvm-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ echo -n " -DCMAKE_C_COMPILER=$PWD/stage1/bin/clang.exe -DCMAKE_C_COMPILER_WORKS=
echo -n " -DSTAGE0_CMAKE_C_COMPILER=clang -DSTAGE0_CMAKE_CXX_COMPILER=clang++"
echo -n " -DLEAN_EXTRA_CXX_FLAGS='--sysroot $PWD/llvm -idirafter /clang64/include/'"
echo -n " -DLEANC_INTERNAL_FLAGS='--sysroot ROOT -nostdinc -isystem ROOT/include/clang' -DLEANC_CC=ROOT/bin/clang.exe"
echo -n " -DLEANC_INTERNAL_LINKER_FLAGS='-L ROOT/lib -static-libgcc -Wl,-Bstatic -lgmp $(pkg-config --static --libs libuv) -lunwind -Wl,-Bdynamic -fuse-ld=lld'"
echo -n " -DLEANC_INTERNAL_LINKER_FLAGS='-L ROOT/lib -Wl,-Bstatic -lgmp $(pkg-config --static --libs libuv) -lunwind -Wl,-Bdynamic -fuse-ld=lld'"
# when not using the above flags, link GMP dynamically/as usual. Always link ICU dynamically.
echo -n " -DLEAN_EXTRA_LINKER_FLAGS='-lgmp $(pkg-config --libs libuv) -lucrtbase'"
# do not set `LEAN_CC` for tests
Expand Down

0 comments on commit 3202715

Please sign in to comment.