From d30e9aabf9e5e1956f25a3f74f61d26075a39c46 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Mon, 10 Sep 2012 07:41:23 +1000 Subject: Avoid .eh_frame bloat with newer gcc Signed-off-by: Steve Bennett --- Makefile.in | 4 ++-- auto.def | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 49526c4..0d98c3a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -18,8 +18,8 @@ SHOBJ_LDFLAGS ?= @SHOBJ_LDFLAGS@ @else SHOBJ_LDFLAGS ?= @SHOBJ_LDFLAGS_R@ @endif -CFLAGS = @CFLAGS@ -CXXFLAGS = @CXXFLAGS@ +CFLAGS = @CFLAGS@ @CCOPTS@ +CXXFLAGS = @CXXFLAGS@ @CXXOPTS@ LDFLAGS = @LDFLAGS@ LDLIBS += @LDLIBS@ exec_prefix ?= @exec_prefix@ diff --git a/auto.def b/auto.def index e4b7303..5eeba85 100644 --- a/auto.def +++ b/auto.def @@ -68,6 +68,15 @@ options { cc-check-types "long long" +define CCOPTS "" +define CXXOPTS "" +if {[cctest -cflags -fno-unwind-tables]} { + define-append CCOPTS -fno-unwind-tables +} +if {[cctest -cflags -fno-asynchronous-unwind-tables]} { + define-append CCOPTS -fno-asynchronous-unwind-tables +} + cc-check-includes sys/time.h sys/socket.h netinet/in.h arpa/inet.h netdb.h cc-check-includes sys/un.h dlfcn.h unistd.h dirent.h crt_externs.h -- cgit v1.1