fix gcc link errors
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@589 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
1e6be9b640
commit
ac263c0ca6
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ LIB1 = libfoo.so
|
|||
LIB2 = libsingletondll.so
|
||||
CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2
|
||||
CPPFLAGS = -I../../include -DNDEBUG
|
||||
LDFLAGS = -L../../lib
|
||||
LDFLAGS = -L. -L../../lib
|
||||
LDLIBS = -lloki
|
||||
|
||||
.PHONY: build clean
|
||||
|
@ -16,7 +16,7 @@ $(LIB1): foo.cpp
|
|||
$(CXX) --shared $(CXXFLAGS) $(CPPFLAGS) -o $(LIB1) foo.cpp
|
||||
|
||||
$(LIB2): singletondll.cpp
|
||||
$(CXX) --shared $(CXXFLAGS) $(CPPFLAGS) -o $(LIB2) singletondll.cpp
|
||||
$(CXX) --shared $(CXXFLAGS) $(CPPFLAGS) -o $(LIB2) singletondll.cpp $(LDFLAGS) $(LDLIBS) -lfoo
|
||||
|
||||
clean:
|
||||
rm -f $(BIN) $(LIB1) $(LIB2)
|
||||
|
|
Loading…
Reference in a new issue