]> Pileus Git - ~andy/sunrise/blob - games-strategy/0ad/files/11339_alpha9-fcollada-makefile.patch
punt old crap
[~andy/sunrise] / games-strategy / 0ad / files / 11339_alpha9-fcollada-makefile.patch
1 From: hasufell <julian.ospald@googlemail.com>
2 Date: Wed Apr 11 14:45:32 UTC 2012
3
4 FCollada Makefile does not respect CXX and flags
5
6 --- libraries/fcollada/src/Makefile
7 +++ libraries/fcollada/src/Makefile
8 @@ -7,14 +7,14 @@
9  PIC_FLAGS ?= -fpic
10  endif
11  
12 -CXX := g++
13 -CXXFLAGS := -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS)
14 +CXX ?= g++
15 +CXXFLAGS += -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS)
16  CXXFLAGS_DEBUG := -O0 -g -D_DEBUG -DRETAIL
17  CXXFLAGS_RELEASE := -O1 -DNDEBUG -DRETAIL
18  # (-O2 with gcc 4.3 causes linker errors when using this library, for unknown reasons, so stick with -O1)
19  CXXFLAGS_TEST := -O0 -g -D_DEBUG
20 -LIBS := `pkg-config libxml-2.0 --libs`
21 -INCLUDES := -IFCollada `pkg-config libxml-2.0 --cflags`
22 +LIBS += `pkg-config libxml-2.0 --libs`
23 +INCLUDES += -IFCollada `pkg-config libxml-2.0 --cflags`
24  INCLUDES_TEST := -IFCollada/FColladaTest $(INCLUDES)
25  
26  # FCollada is not aliasing-safe, so disallow dangerous optimisations