mirror of
https://github.com/tmux/tmux.git
synced 2026-02-08 12:37:20 +00:00
Add a --enable-optimizations configure flag.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -64,6 +64,15 @@ AC_ARG_ENABLE(
|
||||
)
|
||||
AM_CONDITIONAL(IS_DEBUG, test "x$enable_debug" = xyes)
|
||||
|
||||
# Is this --enable-optimizations?
|
||||
AC_ARG_ENABLE(
|
||||
optimizations,
|
||||
AS_HELP_STRING(--enable-optimizations, enable optimization build flags),
|
||||
,
|
||||
enable_optimizations=yes
|
||||
)
|
||||
AM_CONDITIONAL(IS_OPTIMIZED, test "x$enable_optimizations" = xyes)
|
||||
|
||||
# Is this a static build?
|
||||
AC_ARG_ENABLE(
|
||||
static,
|
||||
|
||||
Reference in New Issue
Block a user