Skip to content

Commit

Permalink
Link stdlib statically
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed Jun 25, 2024
1 parent af1b329 commit f167793
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion win/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ patchfile=../../chrome/patches/curl-impersonate.patch
patch -p1 < $patchfile

export CMAKE_PREFIX_PATH=../boringssl
export CFLAGS='-Wno-unused-variable -static -static-libgcc -static-libstdc++'
export CXXFLAGS='-static -static-libgcc -static-libstdc++'
export LDFLAGS='-static -static-libgcc -static-libstdc++ -lz -lidn2 -lnghttp2 -lbrotlidec -lpsl'

cmake -B build -G "MinGW Makefiles" \
-DENABLE_IPV6=ON \
Expand All @@ -60,7 +63,7 @@ cmake -B build -G "MinGW Makefiles" \
-DCURL_USE_OPENSSL=ON \
-DUSE_ECH=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS=-Wno-unused-variable \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_STATIC_LIBS=ON \
-DBUILD_STATIC_CURL=ON \

Expand Down

0 comments on commit f167793

Please sign in to comment.