From 2d7faeb3ddee96d7454f8e1b05baefd16886cff9 Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Sun, 1 Mar 2009 11:38:18 +0000 Subject: [PATCH] To build shared libraries on Windows, one has to declare explicitly that there are no undefined symbols during linking. No idea why, but this seems to be the only way to enable this on Cygwin via -mno-cygwin. Hopefully this won't cause problems on other platforms (which has to be tested). git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@789 7f0cb862-5218-0410-a997-914c9d46530a --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 98fae4b..027b3b9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -43,7 +43,7 @@ lib@LIBRARY@_la_SOURCES = freeglut_callbacks.c \ # Additional linker flags # lib@LIBRARY@_la_LIBADD = $(LIBM) $(X_LIBS) $(GL_LIBS) $(LIBXXF86VM) $(LIBXI) -lib@LIBRARY@_la_LDFLAGS = $(VERSION_INFO) +lib@LIBRARY@_la_LDFLAGS = $(VERSION_INFO) -no-undefined lib@LIBRARY@_la_CFLAGS = $(X_CFLAGS) $(EXPORT_FLAGS) lib@LIBRARY@_la_CPPFLAGS= -I$(top_srcdir)/include -- 1.7.10.4