Fix for gcc-4.6 from Nils Larsson; pass --no-as-needed to g++ in order to allow building on Ubuntu 11.10

pull/110/head
Andrew Tribick 2011-11-24 21:26:25 +00:00
parent 6a20a09673
commit dd3c34dc13
3 changed files with 3 additions and 2 deletions

View File

@ -14,6 +14,7 @@
#define _CELENGINE_FRAMETREE_H_
#include <vector>
#include <cstddef>
class Star;
class Body;

View File

@ -55,7 +55,7 @@ if ENABLE_THEORA
THEORASOURCES = oggtheoracapture.cpp
endif
celestia_CXXFLAGS = $(LUA_CFLAGS) $(SPICE_CFLAGS) $(THEORA_CFLAGS)
celestia_CXXFLAGS = $(LUA_CFLAGS) $(SPICE_CFLAGS) $(THEORA_CFLAGS) -Wl,--no-as-needed
celestia_SOURCES = $(COMMONSOURCES) $(CELXSOURCES) $(GLUTSOURCES) $(THEORASOURCES)

View File

@ -80,7 +80,7 @@ INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/thirdparty/Eigen -I$(top_srcdir)/
BUILT_SOURCES = $(MOC_CPP_FILES) $(QRC_CPP_FILES) $(UI_H_FILES)
libqtgui_a_CXXFLAGS = $(LUA_CFLAGS) $(QT_CFLAGS) $(THEORA_CFLAGS)
libqtgui_a_CXXFLAGS = $(LUA_CFLAGS) $(QT_CFLAGS) $(THEORA_CFLAGS) -Wl,--no-as-needed
libqtgui_a_SOURCES = \
$(MOC_CPP_FILES) \