diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-07-13 21:00:43 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-07-13 21:04:13 -0400 |
commit | 05dd2b263df6fc0d26a98f6888e0064876c8749b (patch) | |
tree | 7b5a0fb0d712a037e2448072ae8c527c1c4ce941 | |
parent | 19c96abe0a1ee56cf206fd5e87defb1fd3e0daa5 (diff) | |
download | bfs-05dd2b263df6fc0d26a98f6888e0064876c8749b.tar.xz |
build: Move some flags around
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |