mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 13:54:21 +08:00
Makefile: support CXXFLAGS and LDFLAGS passed via environment
This commit is contained in:
parent
0bc6711a95
commit
678626ef82
15
Makefile
15
Makefile
|
@ -61,13 +61,14 @@ SRC = $(wildcard src/*.cpp)
|
||||||
OBJS = $(SRC:src/%.cpp=build/%.o)
|
OBJS = $(SRC:src/%.cpp=build/%.o)
|
||||||
DEPS = $(SRC:src/%.cpp=build/%.d)
|
DEPS = $(SRC:src/%.cpp=build/%.d)
|
||||||
MANPAGE = mergerfs.1
|
MANPAGE = mergerfs.1
|
||||||
CXXFLAGS = \
|
CXXFLAGS ?= ${OPT_FLAGS}
|
||||||
|
CXXFLAGS := \
|
||||||
|
${CXXFLAGS} \
|
||||||
-std=c++0x \
|
-std=c++0x \
|
||||||
$(OPT_FLAGS) \
|
|
||||||
$(STATIC_FLAGS) \
|
$(STATIC_FLAGS) \
|
||||||
$(LTO_FLAGS) \
|
$(LTO_FLAGS) \
|
||||||
-Wall \
|
-Wall \
|
||||||
-Wno-unused-result \
|
-Wno-unused-result \
|
||||||
-MMD
|
-MMD
|
||||||
FUSE_FLAGS = \
|
FUSE_FLAGS = \
|
||||||
-Ilibfuse/include \
|
-Ilibfuse/include \
|
||||||
|
@ -76,9 +77,11 @@ FUSE_FLAGS = \
|
||||||
MFS_FLAGS = \
|
MFS_FLAGS = \
|
||||||
-DUSE_XATTR=$(USE_XATTR) \
|
-DUSE_XATTR=$(USE_XATTR) \
|
||||||
-DUGID_USE_RWLOCK=$(UGID_USE_RWLOCK)
|
-DUGID_USE_RWLOCK=$(UGID_USE_RWLOCK)
|
||||||
LDFLAGS = \
|
|
||||||
-pthread \
|
LDFLAGS := \
|
||||||
-lrt
|
${LDFLAGS} \
|
||||||
|
-pthread \
|
||||||
|
-lrt
|
||||||
|
|
||||||
DESTDIR =
|
DESTDIR =
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
Loading…
Reference in New Issue
Block a user