Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
751689e9
Commit
751689e9
authored
Feb 24, 2015
by
Daniele Tafani
Browse files
Workaround for broken gcc-4.8 linker.
parent
7c8d6329
Changes
1
Hide whitespace changes
Inline
Side-by-side
DCDBTools/dcdbconfig/Makefile
View file @
751689e9
include
../../config.mk
CXXFLAGS
=
-O0
-g
--std
=
c++11
-Wall
-Wno-unused-local-typedefs
-Wno-unknown-warning-option
-fmessage-length
=
0
-I
$(DCDBDEPLOYPATH)
/include/
-I
$(DCDBBASEPATH)
/include/
CXXFLAGS
=
-O0
-g
gdb
--std
=
c++11
-Wall
-Wno-unused-local-typedefs
-Wno-unknown-warning-option
-fmessage-length
=
0
-I
$(DCDBDEPLOYPATH)
/include/
-I
$(DCDBBASEPATH)
/include/
OBJS
=
dcdbconfig.o sensoraction.o useraction.o casshelper.o
LIBS
=
-L
$(DCDBDEPLOYPATH)
/lib/
-ldcdb
-lcassandra
-lboost_random
-lboost_system
-luv
LIBS
=
-L
$(DCDBDEPLOYPATH)
/lib/
-ldcdb
-lcassandra
-luv
-lboost_random
-lboost_system
# GCC 4.8 is broken
ifeq
($(findstring 4.8, $(shell $(CXX) --version)), 4.8)
SLIBS
=
$(DCDBDEPLOYPATH)
/lib/libboost_random.a
$(DCDBDEPLOYPATH)
/lib/libboost_system.a
else
SLIBS
=
endif
TARGET
=
dcdbconfig
.PHONY
:
clean install
$(TARGET)
:
$(OBJS)
$(CXX)
-o
$(TARGET)
$(OBJS)
$(LIBS)
$(CXX)
-o
$(TARGET)
$(OBJS)
$(LIBS)
$(SLIBS)
all
:
$(TARGET)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment