From: Sven Panne Date: Sun, 1 Mar 2009 11:38:18 +0000 (+0000) Subject: To build shared libraries on Windows, one has to declare explicitly that there are... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;ds=sidebyside;h=2d7faeb3ddee96d7454f8e1b05baefd16886cff9;p=freeglut 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 --- 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