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: https://svn.code.sf.net/p/freeglut/code/trunk@789 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2009-03-01 11:38:18 +00:00
parent 7e0fcbc4e3
commit 2ceeedd2f0

View File

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