Line
Link Here
|
0 |
-- libraries/fcollada/src/Makefile |
0 |
++ libraries/fcollada/src/Makefile |
Lines 7-20
Link Here
|
7 |
PIC_FLAGS ?= -fpic |
7 |
PIC_FLAGS ?= -fpic |
8 |
endif |
8 |
endif |
9 |
|
9 |
|
10 |
CXX := g++ |
10 |
CXX ?= g++ |
11 |
CXXFLAGS := -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS) |
11 |
CXXFLAGS += -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS) |
12 |
CXXFLAGS_DEBUG := -O0 -g -D_DEBUG -DRETAIL |
12 |
CXXFLAGS_DEBUG := -O0 -g -D_DEBUG -DRETAIL |
13 |
CXXFLAGS_RELEASE := -O1 -DNDEBUG -DRETAIL |
13 |
CXXFLAGS_RELEASE := -O1 -DNDEBUG -DRETAIL |
14 |
# (-O2 with gcc 4.3 causes linker errors when using this library, for unknown reasons, so stick with -O1) |
14 |
# (-O2 with gcc 4.3 causes linker errors when using this library, for unknown reasons, so stick with -O1) |
15 |
CXXFLAGS_TEST := -O0 -g -D_DEBUG |
15 |
CXXFLAGS_TEST := -O0 -g -D_DEBUG |
16 |
LIBS := `pkg-config libxml-2.0 --libs` |
16 |
LIBS += `pkg-config libxml-2.0 --libs` |
17 |
INCLUDES := -IFCollada `pkg-config libxml-2.0 --cflags` |
17 |
INCLUDES += -IFCollada `pkg-config libxml-2.0 --cflags` |
18 |
INCLUDES_TEST := -IFCollada/FColladaTest $(INCLUDES) |
18 |
INCLUDES_TEST := -IFCollada/FColladaTest $(INCLUDES) |
19 |
|
19 |
|
20 |
# FCollada is not aliasing-safe, so disallow dangerous optimisations |
20 |
# FCollada is not aliasing-safe, so disallow dangerous optimisations |