Browse Source

Merge pull request #493 from ahippo/ldflags

Makefile: don't touch LDFLAGS
pull/494/head
trapexit 6 years ago
committed by GitHub
parent
commit
fdbafa63ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      Makefile

5
Makefile

@ -58,7 +58,6 @@ CFLAGS = -g -Wall \
-DFUSE_USE_VERSION=29 \ -DFUSE_USE_VERSION=29 \
-MMD \ -MMD \
-DUGID_USE_RWLOCK=$(UGID_USE_RWLOCK) -DUGID_USE_RWLOCK=$(UGID_USE_RWLOCK)
LDFLAGS = -pthread -lrt
PREFIX = /usr/local PREFIX = /usr/local
EXEC_PREFIX = $(PREFIX) EXEC_PREFIX = $(PREFIX)
@ -86,7 +85,7 @@ help:
$(TARGET): version obj/obj-stamp libfuse/lib/.libs/libfuse.a $(OBJ) $(TARGET): version obj/obj-stamp libfuse/lib/.libs/libfuse.a $(OBJ)
cd libfuse && make cd libfuse && make
$(CXX) $(CFLAGS) $(OBJ) -o $@ libfuse/lib/.libs/libfuse.a -ldl $(LDFLAGS)
$(CXX) $(CFLAGS) $(LDFLAGS) $(OBJ) -o $@ libfuse/lib/.libs/libfuse.a -ldl -pthread -lrt
mount.mergerfs: $(TARGET) mount.mergerfs: $(TARGET)
$(LN) -fs "$<" "$@" $(LN) -fs "$<" "$@"
@ -208,7 +207,7 @@ else ifeq ($(shell test -e /usr/bin/yum; echo $$?),0)
yum -y install git rpm-build libattr-devel gcc-c++ make which python automake libtool gettext-devel yum -y install git rpm-build libattr-devel gcc-c++ make which python automake libtool gettext-devel
endif endif
unexport CFLAGS LDFLAGS
unexport CFLAGS
.PHONY: libfuse_Makefile .PHONY: libfuse_Makefile
libfuse_Makefile: libfuse_Makefile:
ifeq ($(shell test -e libfuse/Makefile; echo $$?),1) ifeq ($(shell test -e libfuse/Makefile; echo $$?),1)

Loading…
Cancel
Save