mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
libfuse/Makefile: support CXXFLAGS and LDFLAGS passed via environment
This commit is contained in:
parent
678626ef82
commit
f488debf96
1 changed files with 6 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue