mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
allow LDFLAGS to be set by user
Move old LDFLAGS variable to LDLIBS. By doing ths, a user can set their own LDFLAGS without breaking the build. A case in which this can be useful is hardening with debian, e.g. $ dpkg-buildflags --get LDFLAGS -Wl,-z,relro
This commit is contained in:
parent
38b901484a
commit
25b5068f5e
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ endif
|
||||||
all: obj i2p
|
all: obj i2p
|
||||||
|
|
||||||
i2p: $(OBJECTS:obj/%=obj/%)
|
i2p: $(OBJECTS:obj/%=obj/%)
|
||||||
$(CXX) -o $@ $^ $(LDFLAGS) $(LIBS)
|
$(CXX) -o $@ $^ $(LDLIBS) $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .cc .C .cpp .o
|
.SUFFIXES: .c .cc .C .cpp .o
|
||||||
|
|
|
@ -3,5 +3,6 @@ CXXFLAGS = -O2
|
||||||
NEEDED_CXXFLAGS = -std=c++11
|
NEEDED_CXXFLAGS = -std=c++11
|
||||||
include filelist.mk
|
include filelist.mk
|
||||||
INCFLAGS = -I/usr/include/ -I/usr/local/include/
|
INCFLAGS = -I/usr/include/ -I/usr/local/include/
|
||||||
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib
|
||||||
|
LDLIBS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
||||||
LIBS =
|
LIBS =
|
||||||
|
|
|
@ -19,7 +19,7 @@ endif
|
||||||
|
|
||||||
include filelist.mk
|
include filelist.mk
|
||||||
INCFLAGS =
|
INCFLAGS =
|
||||||
LDFLAGS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
LDLIBS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
||||||
LIBS =
|
LIBS =
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@ CXX = clang++
|
||||||
CXXFLAGS = -g -Wall -std=c++11 -lstdc++ -I/usr/local/include
|
CXXFLAGS = -g -Wall -std=c++11 -lstdc++ -I/usr/local/include
|
||||||
include filelist.mk
|
include filelist.mk
|
||||||
INCFLAGS = -DCRYPTOPP_DISABLE_ASM
|
INCFLAGS = -DCRYPTOPP_DISABLE_ASM
|
||||||
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib
|
||||||
|
LDLIBS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
||||||
LIBS =
|
LIBS =
|
||||||
|
|
||||||
# OSX Notes
|
# OSX Notes
|
||||||
|
|
Loading…
Reference in a new issue