Skip to content

Commit 4171e05

Browse files
committed
fix windows pthread.dll bug
1 parent 62db7d2 commit 4171e05

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

build/build_windows.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ else
2323
_arch="x86_64-w64-mingw32"
2424
fi
2525

26-
sudo mv /usr/i686-w64-mingw32/include/pthread.h /usr/i686-w64-mingw32/include/pthread.h_disabled
27-
2826
# Download openssl
2927
#-----------------------------------------------------------------------------
3028
if [ ! -d openssl-${openssl} ]; then

build/windows/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ COMMON_FLAGS := CC=$(CC) \
4343
CXX=$(CXX) \
4444
RANLIB=$(RANLIB) \
4545
EXTRA_CFLAGS="$(CFLAGS)" \
46-
EXTRA_LFLAGS="$(LFLAGS)" \
46+
EXTRA_LFLAGS="$(LFLAGS) -static" \
4747
LIBS="$(LIBS)" \
4848
SYSROOT=$(SYSROOT) \
4949
SYSROOT_ALT= \

0 commit comments

Comments
 (0)