[grits] Use -no-undefined for win32 builds



commit 1226f71f12256173b0a00877e0664f7813d70df6
Author: Andy Spencer <andy753421 gmail com>
Date:   Thu Aug 25 05:56:56 2011 +0000

    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..

 src/Makefile.am         |    2 +-
 src/plugins/Makefile.am |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
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   = \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]