Browse Source

Makefile: support CXXFLAGS and LDFLAGS passed via environment

pull/808/head
KARBOWSKI Piotr 4 years ago
parent
commit
678626ef82
  1. 15
      Makefile

15
Makefile

@ -61,13 +61,14 @@ SRC = $(wildcard src/*.cpp)
OBJS = $(SRC:src/%.cpp=build/%.o)
DEPS = $(SRC:src/%.cpp=build/%.d)
MANPAGE = mergerfs.1
CXXFLAGS = \
CXXFLAGS ?= ${OPT_FLAGS}
CXXFLAGS := \
${CXXFLAGS} \
-std=c++0x \
$(OPT_FLAGS) \
$(STATIC_FLAGS) \
$(LTO_FLAGS) \
-Wall \
-Wno-unused-result \
-Wno-unused-result \
-MMD
FUSE_FLAGS = \
-Ilibfuse/include \
@ -76,9 +77,11 @@ FUSE_FLAGS = \
MFS_FLAGS = \
-DUSE_XATTR=$(USE_XATTR) \
-DUGID_USE_RWLOCK=$(UGID_USE_RWLOCK)
LDFLAGS = \
-pthread \
-lrt
LDFLAGS := \
${LDFLAGS} \
-pthread \
-lrt
DESTDIR =
PREFIX = /usr/local

Loading…
Cancel
Save