mirror of
https://github.com/tmux/tmux.git
synced 2025-01-08 17:18:47 +00:00
I no longer need to care about GCC 3.
This commit is contained in:
parent
20598dff25
commit
75061cb45d
12
Makefile.am
12
Makefile.am
@ -22,8 +22,7 @@ if IS_GLIBC
|
|||||||
CFLAGS += -D_GNU_SOURCE
|
CFLAGS += -D_GNU_SOURCE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
|
# Set flags for gcc.
|
||||||
# different flags.
|
|
||||||
if IS_GCC
|
if IS_GCC
|
||||||
CFLAGS += -std=gnu99 -O2
|
CFLAGS += -std=gnu99 -O2
|
||||||
if IS_DEBUG
|
if IS_DEBUG
|
||||||
@ -32,17 +31,10 @@ 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 -Wno-pointer-sign
|
||||||
CPPFLAGS += -DDEBUG
|
CPPFLAGS += -DDEBUG
|
||||||
endif
|
endif
|
||||||
if IS_GCC4
|
|
||||||
CPPFLAGS += -iquote.
|
CPPFLAGS += -iquote.
|
||||||
if IS_DEBUG
|
|
||||||
CFLAGS += -Wno-pointer-sign
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
CPPFLAGS += -I. -I-
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Set flags for Solaris.
|
# Set flags for Solaris.
|
||||||
|
13
configure.ac
13
configure.ac
@ -44,19 +44,6 @@ fi
|
|||||||
|
|
||||||
# Is this gcc?
|
# Is this gcc?
|
||||||
AM_CONDITIONAL(IS_GCC, test "x$GCC" = xyes)
|
AM_CONDITIONAL(IS_GCC, test "x$GCC" = xyes)
|
||||||
AC_MSG_CHECKING(for gcc that whines about -I)
|
|
||||||
AC_EGREP_CPP(
|
|
||||||
yes,
|
|
||||||
[
|
|
||||||
#if __GNUC__ > 3
|
|
||||||
yes
|
|
||||||
#endif
|
|
||||||
],
|
|
||||||
found_gcc4=yes,
|
|
||||||
found_gcc4=no
|
|
||||||
)
|
|
||||||
AM_CONDITIONAL(IS_GCC4, test "x$found_gcc4" = xyes)
|
|
||||||
AC_MSG_RESULT($found_gcc4)
|
|
||||||
|
|
||||||
# Is this Sun CC?
|
# Is this Sun CC?
|
||||||
AC_EGREP_CPP(
|
AC_EGREP_CPP(
|
||||||
|
Loading…
Reference in New Issue
Block a user