summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-07-13 21:00:43 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-07-13 21:04:13 -0400
commit05dd2b263df6fc0d26a98f6888e0064876c8749b (patch)
tree7b5a0fb0d712a037e2448072ae8c527c1c4ce941
parent19c96abe0a1ee56cf206fd5e87defb1fd3e0daa5 (diff)
downloadbfs-05dd2b263df6fc0d26a98f6888e0064876c8749b.tar.xz
build: Move some flags around
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index beaf59d..db955b5 100644
--- a/Makefile
+++ b/Makefile
@@ -55,10 +55,9 @@ LOCAL_CPPFLAGS := \
-D_LARGEFILE64_SOURCE \
-D_FILE_OFFSET_BITS=64 \
-D_TIME_BITS=64 \
- -DBFS_VERSION=\"$(VERSION)\" \
- -pthread
+ -DBFS_VERSION=\"$(VERSION)\"
-LOCAL_CFLAGS := -std=c17
+LOCAL_CFLAGS := -std=c17 -pthread
LOCAL_LDFLAGS :=
LOCAL_LDLIBS :=
@@ -162,7 +161,8 @@ LOCAL_CFLAGS := $(patsubst -std=c%,-std=gnu%,$(LOCAL_CFLAGS))
endif
ifneq ($(filter release,$(MAKECMDGOALS)),)
-CFLAGS := $(DEFAULT_CFLAGS) -O3 -flto -DNDEBUG
+LOCAL_CPPFLAGS += -DNDEBUG
+CFLAGS := $(DEFAULT_CFLAGS) -O3 -flto
endif
ALL_CPPFLAGS = $(LOCAL_CPPFLAGS) $(CPPFLAGS) $(EXTRA_CPPFLAGS)