Skip to content

Commit 487b68e

Browse files
committed
Windows cache: static link winpthreads to avoid nanosleep64 ABI mismatch
1 parent f462a77 commit 487b68e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-cache.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
mkdir -p cache/linux-x64
3030
CFLAGS="-std=c++2c -O2 -march=x86-64"
31-
LFLAGS="-static-libgcc -static-libstdc++"
31+
LFLAGS="-static-libgcc -static-libstdc++ -Wl,-Bstatic -lpthread -Wl,-Bdynamic"
3232
DEFS="-DPROCESSING_HAS_STB_IMAGE -DPROCESSING_HAS_STB_TRUETYPE"
3333
INC="-I src"
3434
@@ -65,7 +65,7 @@ jobs:
6565
run: |
6666
mkdir -p cache/windows-x64
6767
CFLAGS="-std=c++2c -O2 -march=x86-64"
68-
LFLAGS="-static-libgcc -static-libstdc++"
68+
LFLAGS="-static-libgcc -static-libstdc++ -Wl,-Bstatic -lpthread -Wl,-Bdynamic"
6969
DEFS="-DPROCESSING_HAS_STB_IMAGE -DPROCESSING_HAS_STB_TRUETYPE"
7070
INC="-I src"
7171

0 commit comments

Comments
 (0)