mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-17 01:22:46 +08:00
libfuse/Makefile: support CXXFLAGS and LDFLAGS passed via environment
This commit is contained in:
parent
678626ef82
commit
f488debf96
|
@ -48,9 +48,10 @@ SRC = \
|
|||
lib/mount.c
|
||||
OBJS = $(SRC:lib/%.c=build/%.o)
|
||||
DEPS = $(SRC:lib/%.c=build/%.d)
|
||||
|
||||
CFLAGS = \
|
||||
$(OPT_FLAGS) \
|
||||
CFLAGS ?= \
|
||||
$(OPT_FLAGS)
|
||||
CFLAGS := \
|
||||
${CFLAGS} \
|
||||
-Wall \
|
||||
-pipe \
|
||||
-MMD
|
||||
|
@ -63,7 +64,8 @@ FUSE_FLAGS = \
|
|||
-DFUSE_USE_VERSION=29 \
|
||||
-DPACKAGE_VERSION=\"$(VERSION)\" \
|
||||
-DFUSERMOUNT_DIR=\"$(FUSERMOUNT_DIR)\"
|
||||
LDFLAGS = \
|
||||
LDFLAGS := \
|
||||
${LDFLAGS} \
|
||||
-lrt \
|
||||
-pthread
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user