]> Pileus Git - grits/commitdiff
Use -no-undefined for win32 builds
authorAndy Spencer <andy753421@gmail.com>
Thu, 25 Aug 2011 05:56:56 +0000 (05:56 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 31 Oct 2011 07:38:28 +0000 (07:38 +0000)
This is the libtool flag which is different than the ld flag, and is
needed for building win32 dlls..

src/Makefile.am
src/plugins/Makefile.am

index cc17c40a5fc77163a190c31b9f1624f76e4ff905..18659d3df686f0e17a3060c989e530933636dd46 100644 (file)
@@ -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
index 8e6f5f6eb0ef0a26f6fbe9ae80af79489b1ea670..ff5ee2dbaa055ee11ded2bea7dcf3ba1a2ea010a 100644 (file)
@@ -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   = \