From 1226f71f12256173b0a00877e0664f7813d70df6 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Thu, 25 Aug 2011 05:56:56 +0000 Subject: [PATCH] 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 deletion(-) 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 = \ -- 2.43.2