Skip to content

Commit

Permalink
Link with static libstdc++ for mingw32
Browse files Browse the repository at this point in the history
  • Loading branch information
arun3688 authored and lochel committed Jul 13, 2021
1 parent 2003ef6 commit cceb7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.head
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ else
LIBPTHREAD-WINDOWS64=-L$(UP)/extralibs/pthread/$(ABI)/lib pthreadVC2.lib
endif

INCLXML-WINDOWS32=-I$(MSYSROOT)/mingw32/include/libxml2
LIBXML-WINDOWS32=-Wl,-Bstatic -lxml2 -lz -llzma -liconv -lws2_32 -Wl,-Bdynamic -static-libgcc
INCLXML-WINDOWS32=-I$(MSYSROOT)/mingw32/include/libxml2 -I$(MSYSROOT)/mingw32/include/
LIBXML-WINDOWS32=-L$(MSYSROOT)/mingw32/lib -Wl,-Bstatic -lxml2 -lz -llzma -liconv -lws2_32 -Wl,-Bdynamic -static-libgcc -static-libstdc++
CP-LIBXML-WINDOWS32=cp $(MSYSROOT)/mingw32/bin/libxml2-2.dll $(MSYSROOT)/mingw32/bin/libiconv-2.dll $(MSYSROOT)/mingw32/bin/zlib1.dll $(MSYSROOT)/mingw32/bin/libwinpthread-1.dll $(MSYSROOT)/mingw32/bin/libstdc++-6.dll $(MSYSROOT)/mingw32/bin/libgcc_s_dw2-1.dll $(MSYSROOT)/mingw32/bin/liblzma-5.dll $(UP)/bin
INCLPTHREAD-WINDOWS32=
LIBPTHREAD-WINDOWS32=-Wl,-Bstatic -lpthread -Wl,-Bdynamic
Expand Down

0 comments on commit cceb7be

Please sign in to comment.