From b304b40553b3c9543ab45c9b4f59d882e964c2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8E=B7=F0=9F=90=9B=20Lee=20Ball?= Date: Thu, 31 Dec 2020 19:20:17 -0800 Subject: Append user-defined CFLAGS Allow CFLAGS present in the user's environment be appended to EXTRA_CFLAGS. --- fs/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs') diff --git a/fs/Makefile b/fs/Makefile index e3b6477..f5f4790 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -7,11 +7,11 @@ OSXFUSE_ROOT = /usr/local CFLAGS_EXTRA = -DFUSE_USE_VERSION=26 -D_FILE_OFFSET_BITS=64 -Wall -Wno-unused-function -g ifeq ($(shell uname -s),Linux) - CFLAGS = $(CFLAGS_EXTRA) + CFLAGS ::= $(CFLAGS_EXTRA) $(CFLAGS) LIBS = -lfuse endif ifeq ($(shell uname -s),Darwin) - CFLAGS = -I$(OSXFUSE_ROOT)/include/osxfuse/fuse -L$(OSXFUSE_ROOT)/lib -D_DARWIN_USE_64_BIT_INODE $(CFLAGS_EXTRA) + CFLAGS = -I$(OSXFUSE_ROOT)/include/osxfuse/fuse -L$(OSXFUSE_ROOT)/lib -D_DARWIN_USE_64_BIT_INODE $(CFLAGS_EXTRA) $(CFLAGS) LIBS = -losxfuse endif -- cgit v1.2.3