Add linker option '-static-libgcc' for C++ code on Windows

It seems that standard C libs are needed for C++ externals because
of 'extern "C"' functions (setup, Pd API).
This commit is contained in:
katjav 2018-02-01 21:45:54 +01:00
parent a1ad2e9c88
commit f1b0e3c7b6

View file

@ -633,7 +633,7 @@ ifeq ($(system), Windows)
-Wl,--enable-auto-import "$(PDBINDIR)/pd.dll"
c.ldlibs :=
cxx.flags := -fcheck-new
cxx.ldflags := -static-libstdc++ -shared \
cxx.ldflags := -static-libgcc -static-libstdc++ -shared \
-Wl,--enable-auto-import "$(PDBINDIR)/pd.dll"
cxx.ldlibs :=
shared.extension = dll