]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
allow top-level OPTIMIZE setting to affect builds in these subdirectories too
authorKevin P. Fleming <kpfleming@digium.com>
Sun, 30 Apr 2006 14:27:56 +0000 (14:27 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sun, 30 Apr 2006 14:27:56 +0000 (14:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@23673 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
cdr/Makefile
channels/Makefile
db1-ast/Makefile
editline/configure

index 073845bf79808570ff9768a960adc19756b69e8a..f3f1d1b31d88d37b71040f507de87edfc5b6e631 100644 (file)
--- 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
index 3cd83f492085fcd9b8ec1f445ebeaf610808ba39..bca0165c5a8ba78a94862c4cd5746fd38e409475 100644 (file)
@@ -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
 
 #
index 704ed505c56fc413b710a4a0ed3225b704285099..d56c6bfcb76b5ac0a6e29e95e9576a265b613ac1 100644 (file)
@@ -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)
index 0aa9fdb0241806c62dc5f9ec24bd8bc85b2bf121..87ced1a486203aa34debea0ae36ef22bdf011d1e 100644 (file)
@@ -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)
index 7265fe0200464bf2225c4ba58b5f780d1b19d48f..8f9075c5f9503cce72e516185c95b97f456f202a 100755 (executable)
@@ -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