Add a --enable-optimizations configure flag.

This commit is contained in:
Nicholas Marriott
2026-01-20 15:42:22 +00:00
parent bf8ea85bd7
commit d2e09cb259
2 changed files with 15 additions and 1 deletions

View File

@@ -20,7 +20,12 @@ LDADD = $(LIBOBJS)
# Set flags for gcc.
if IS_GCC
AM_CFLAGS += -std=gnu99 -O2
AM_CFLAGS += -std=gnu99
if IS_OPTIMIZED
AM_CFLAGS += -O2
else
AM_CFLAGS += -O0
endif
if IS_DEBUG
AM_CFLAGS += -g
AM_CFLAGS += -Wno-long-long -Wall -W -Wformat=2