mirror of
https://github.com/tmux/tmux.git
synced 2024-11-10 13:48:48 +00:00
Build DEBUG with -O2 as well.
This commit is contained in:
parent
ea5a223a2e
commit
f5973b7776
@ -25,17 +25,15 @@ endif
|
|||||||
# Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
|
# Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
|
||||||
# different flags.
|
# different flags.
|
||||||
if IS_GCC
|
if IS_GCC
|
||||||
CFLAGS += -std=gnu99
|
CFLAGS += -std=gnu99 -O2
|
||||||
if IS_DEBUG
|
if IS_DEBUG
|
||||||
CFLAGS += -O0 -g
|
CFLAGS += -g
|
||||||
CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
|
CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
|
||||||
CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
|
CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
|
||||||
CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
|
CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
|
||||||
CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
|
CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
|
||||||
CFLAGS += -Wdeclaration-after-statement
|
CFLAGS += -Wdeclaration-after-statement
|
||||||
CPPFLAGS += -DDEBUG
|
CPPFLAGS += -DDEBUG
|
||||||
else
|
|
||||||
CFLAGS += -O2
|
|
||||||
endif
|
endif
|
||||||
if IS_GCC4
|
if IS_GCC4
|
||||||
CPPFLAGS += -iquote. -I/usr/local/include
|
CPPFLAGS += -iquote. -I/usr/local/include
|
||||||
@ -247,7 +245,7 @@ install-exec-hook:
|
|||||||
>$(srcdir)/tmux.1.mdoc; \
|
>$(srcdir)/tmux.1.mdoc; \
|
||||||
else \
|
else \
|
||||||
sed -e "s|@SYSCONFDIR@|$(sysconfdir)|g" $(srcdir)/tmux.1| \
|
sed -e "s|@SYSCONFDIR@|$(sysconfdir)|g" $(srcdir)/tmux.1| \
|
||||||
$(AWK) -f $(srcdir)/mdoc2man.awk >$(srcdir)/tmux.1.man; \
|
$(AWK) -f$(srcdir)/mdoc2man.awk >$(srcdir)/tmux.1.man; \
|
||||||
fi
|
fi
|
||||||
$(MKDIR_P) $(DESTDIR)$(mandir)/man1
|
$(MKDIR_P) $(DESTDIR)$(mandir)/man1
|
||||||
$(INSTALL_DATA) $(srcdir)/tmux.1.@MANFORMAT@ \
|
$(INSTALL_DATA) $(srcdir)/tmux.1.@MANFORMAT@ \
|
||||||
|
Loading…
Reference in New Issue
Block a user