Skip to content

Commit

Permalink
Move -static-libgcc and -static-libstdc++ to LDFLAGS for SDL2.
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Kölbl <[email protected]>
  • Loading branch information
besentv committed Oct 9, 2024
1 parent 670ace4 commit 4c6af0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdl2.make
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define MINGW_TEMPLATE +=
# note: we explicitly disable vsscanf as msvcrt doesn't support it and mingw-w64's wrapper is buggy
$$(BUILDDIR)/SDL2-$(1)/Makefile: $$(SRCDIR)/SDL2/configure $$(SRCDIR)/sdl2.make $$(MINGW_DEPS)
mkdir -p $$(@D)
cd $$(BUILDDIR)/SDL2-$(1); $$(MINGW_ENV) CFLAGS="$$(PDB_CFLAGS_$(1)) $$$${CFLAGS:--g -O2}" CXXFLAGS="$$(PDB_CFLAGS_$(1)) $$$${CXXFLAGS:--g -O2}" LDFLAGS="$$(PDB_LDFLAGS_$(1))" CC="$$(MINGW_$(1))-gcc -static-libgcc" CXX="$$(MINGW_$(1))-g++ -static-libgcc -static-libstdc++" $$(SRCDIR_ABS)/SDL2/configure --build=$$(shell $$(SRCDIR)/mono/config.guess) --target=$$(MINGW_$(1)) --host=$$(MINGW_$(1)) PKG_CONFIG=false ac_cv_func_vsscanf=no --disable-hidapi
cd $$(BUILDDIR)/SDL2-$(1); $$(MINGW_ENV) CFLAGS="$$(PDB_CFLAGS_$(1)) $$$${CFLAGS:--g -O2}" CXXFLAGS="$$(PDB_CFLAGS_$(1)) $$$${CXXFLAGS:--g -O2}" LDFLAGS="$$(PDB_LDFLAGS_$(1)) -static-libgcc -static-libstdc++" CC="$$(MINGW_$(1))-gcc" CXX="$$(MINGW_$(1))-g++" $$(SRCDIR_ABS)/SDL2/configure --build=$$(shell $$(SRCDIR)/mono/config.guess) --target=$$(MINGW_$(1)) --host=$$(MINGW_$(1)) PKG_CONFIG=false ac_cv_func_vsscanf=no --disable-hidapi

$$(BUILDDIR)/SDL2-$(1)/.built: $$(BUILDDIR)/SDL2-$(1)/Makefile $$(SDL2_SRCS) $$(MINGW_DEPS)
+WINEPREFIX=/dev/null $$(MINGW_ENV) $$(MAKE) -C $$(BUILDDIR)/SDL2-$(1)
Expand Down

0 comments on commit 4c6af0a

Please sign in to comment.