diff --git a/src/starsphere/Makefile.mingw b/src/starsphere/Makefile.mingw
index eb2098626010557e32104e682e7854f2032a5ee4..c3c852bf897c9f557a160c261549cebe32a7c9af 100644
--- a/src/starsphere/Makefile.mingw
+++ b/src/starsphere/Makefile.mingw
@@ -35,6 +35,7 @@ LIBS += -lboinc_graphics2 -lboinc_api -lboinc
 LIBS += -Wl,-Bdynamic
 LIBS += $(shell $(STARSPHERE_INSTALL)/bin/sdl2-config --static-libs)
 LIBS += -lopengl32 -lglu32
+LIBS += $(shell $(CXX) -print-file-name=libstdc++.a)
 
 LDFLAGS += -static-libgcc