From a7961494bd62156927e5616d1c9d79d0cee3df78 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sun, 30 Apr 2006 14:27:56 +0000 Subject: [PATCH] allow top-level OPTIMIZE setting to affect builds in these subdirectories too git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@23673 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- Makefile | 4 ++-- cdr/Makefile | 2 +- channels/Makefile | 2 +- db1-ast/Makefile | 2 +- editline/configure | 2 -- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 073845bf79..f3f1d1b31d 100644 --- a/Makefile +++ b/Makefile @@ -433,10 +433,10 @@ endif noclean: depend asterisk subdirs editline/config.h: - cd editline && unset CFLAGS LIBS && ./configure ; \ + cd editline && unset CFLAGS LIBS && CFLAGS="$(OPTIMIZE)" ./configure ; \ editline/libedit.a: FORCE - cd editline && unset CFLAGS LIBS && test -f config.h || ./configure + cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="$(OPTIMIZE)" ./configure $(MAKE) -C editline libedit.a db1-ast/libdb1.a: FORCE diff --git a/cdr/Makefile b/cdr/Makefile index 3cd83f4920..bca0165c5a 100644 --- a/cdr/Makefile +++ b/cdr/Makefile @@ -32,7 +32,7 @@ endif #the default as we now have a better instruction set to work with. - Belgarath ifeq ($(PROC),sparc64) PROC=ultrasparc - CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8 + CFLAGS += -mtune=$(PROC) -pipe -fomit-frame-pointer -mcpu=v8 endif # diff --git a/channels/Makefile b/channels/Makefile index 704ed505c5..d56c6bfcb7 100644 --- a/channels/Makefile +++ b/channels/Makefile @@ -44,7 +44,7 @@ endif ifeq ($(PROC),sparc64) PROC=ultrasparc - CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8 + CFLAGS += -mtune=$(PROC) -pipe -fomit-frame-pointer -mcpu=v8 endif ifeq (${OSARCH},FreeBSD) diff --git a/db1-ast/Makefile b/db1-ast/Makefile index 0aa9fdb024..87ced1a486 100644 --- a/db1-ast/Makefile +++ b/db1-ast/Makefile @@ -10,7 +10,7 @@ endif #Added support for UltraSparc - Belgarath ifeq ($(ARCH),sparc64) PROC=ultrasparc -CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8 +CFLAGS += -mtune=$(PROC) -pipe -fomit-frame-pointer -mcpu=v8 endif LIBDBSO=libdb.so.$(SOVER) diff --git a/editline/configure b/editline/configure index 7265fe0200..8f9075c5f9 100755 --- a/editline/configure +++ b/editline/configure @@ -1923,8 +1923,6 @@ fi if test "x$enable_debug" = "xyes" ; then CPPFLAGS="$CPPFLAGS -DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG" CPPFLAGS="$CPPFLAGS -DDEBUG_REFRESH -DDEBUG_PASTE" -else - CFLAGS="$CFLAGS -O" fi