Since March 2006 in ALT Linux we have `ld -Wl,--as-needed` [*] by default. And with this configuration I get an error when building vegastrike caused by undefined references to libgtk+2 symbols. Reason is that gtk libs added to linker flags, while with ld with --as-needed will omit libraries not required by _previos_ objects.(Also, same behavior is with static linking.) Small patch (against 0.5.0) has fixed building for me:
Code: Select all
--- vegastrike-0.5.0/Makefile.am.orig 2008-04-24 16:16:50 +0400
+++ vegastrike-0.5.0/Makefile.am 2009-03-07 19:44:53 +0300
@@ -1074,7 +1074,7 @@
tools/vsrextract.cpp \
tools/vsrtools.h
-vssetup_LDFLAGS = $(GTK_LIBS)
+vssetup_LDADD = $(GTK_LIBS)
vssetup_CXXFLAGS= $(GTK_CFLAGS)
vssetup_SOURCES = \
setup/src/c/setup.cpp \
PS. I compiled vegastrike without OGRE, linking with which looks to have similar problem.