From: Andy Spencer Date: Thu, 25 Aug 2011 05:56:56 +0000 (+0000) Subject: Use -no-undefined for win32 builds X-Git-Tag: v0.6~3 X-Git-Url: http://pileus.org/git/?p=grits;a=commitdiff_plain;h=1226f71f12256173b0a00877e0664f7813d70df6 Use -no-undefined for win32 builds This is the libtool flag which is different than the ld flag, and is needed for building win32 dlls.. --- diff --git a/src/Makefile.am b/src/Makefile.am index cc17c40..18659d3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -49,7 +49,7 @@ libgrits_la_LDFLAGS = $(AM_LDFLAGS) \ # Demo program if WIN32 AM_CPPFLAGS += -DUSE_WGL -AM_LDFLAGS += -mwindows +AM_LDFLAGS += -mwindows -no-undefined dots = .. else AM_CPPFLAGS += -DUSE_GLX diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 8e6f5f6..ff5ee2d 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -14,6 +14,10 @@ map_la_SOURCES = map.c map.h env_la_SOURCES = env.c env.h test_la_SOURCES = test.c test.h +if WIN32 +AM_LDFLAGS += -no-undefined +endif + if HAVE_GLUT noinst_LTLIBRARIES = teapot.la teapot_la_SOURCES = \