mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 04:46:41 -05:00
fix: restore NDEBUG=1 release flags for static builds
- c8f32f9f dropped the NDEBUG branch from both Makefiles, so the
static containerfiles and the container image, which run
`make NDEBUG=1 LTO=1 STATIC=1`, built -O0 -g3 with asserts live.
- NDEBUG=1 now selects -O3 -DNDEBUG, matching `make release`, in
mergerfs and vendored libfuse. NDEBUG=0 or unset is unchanged.
This commit is contained in:
parent
b885f1ee39
commit
10a1f030a3
2 changed files with 6 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -70,7 +70,9 @@ DEBUG_OPT_FLAGS += \
|
|||
-fno-omit-frame-pointer \
|
||||
$(SANITIZE)
|
||||
|
||||
ifdef RELEASE
|
||||
ifeq ($(NDEBUG),1)
|
||||
OPT_FLAGS := -O3 -DNDEBUG $(COMMON_OPT_FLAGS)
|
||||
else ifdef RELEASE
|
||||
OPT_FLAGS := -O3 $(COMMON_OPT_FLAGS)
|
||||
else
|
||||
OPT_FLAGS ?= $(DEBUG_OPT_FLAGS) $(COMMON_OPT_FLAGS)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,9 @@ DEBUG_OPT_FLAGS += \
|
|||
-fno-omit-frame-pointer \
|
||||
$(SANITIZE)
|
||||
|
||||
ifdef RELEASE
|
||||
ifeq ($(NDEBUG),1)
|
||||
OPT_FLAGS := -O3 -DNDEBUG $(COMMON_OPT_FLAGS)
|
||||
else ifdef RELEASE
|
||||
OPT_FLAGS := -O3 $(COMMON_OPT_FLAGS)
|
||||
else
|
||||
OPT_FLAGS ?= $(DEBUG_OPT_FLAGS) $(COMMON_OPT_FLAGS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue