aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-03-17 11:02:40 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-03-17 11:02:40 +0000
commite78de9b54af8c678547146555feeeca765ae18fe (patch)
tree70352587584bbd2a1840ae7b78ccf9f70b4c768f /config
parentb88139c68ef96b51e07fc019807a86052d29e986 (diff)
downloadxen-e78de9b54af8c678547146555feeeca765ae18fe.tar.gz
xen-e78de9b54af8c678547146555feeeca765ae18fe.tar.bz2
xen-e78de9b54af8c678547146555feeeca765ae18fe.zip
Add -fno-optimize-sibling-calls to debug CFLAGS. Also get rid of ?=
assignment to CFLAGS. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'config')
-rw-r--r--config/StdGNU.mk5
-rw-r--r--config/SunOS.mk5
2 files changed, 4 insertions, 6 deletions
diff --git a/config/StdGNU.mk b/config/StdGNU.mk
index 82a99d3f11..c020357654 100644
--- a/config/StdGNU.mk
+++ b/config/StdGNU.mk
@@ -41,9 +41,8 @@ SONAME_LDFLAG = -soname
SHLIB_CFLAGS = -shared
ifneq ($(debug),y)
-# Optimisation flags are overridable
-CFLAGS ?= -O2 -fomit-frame-pointer
+CFLAGS += -O2 -fomit-frame-pointer
else
# Less than -O1 produces bad code and large stack frames
-CFLAGS ?= -O1 -fno-omit-frame-pointer
+CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
endif
diff --git a/config/SunOS.mk b/config/SunOS.mk
index c2a5594000..61fa489c27 100644
--- a/config/SunOS.mk
+++ b/config/SunOS.mk
@@ -45,11 +45,10 @@ SONAME_LDFLAG = -h
SHLIB_CFLAGS = -R $(SunOS_LIBDIR) -shared
ifneq ($(debug),y)
-# Optimisation flags are overridable
-CFLAGS ?= -O2 -fno-omit-frame-pointer
+CFLAGS += -O2 -fno-omit-frame-pointer
else
# Less than -O1 produces bad code and large stack frames
-CFLAGS ?= -O1 -fno-omit-frame-pointer
+CFLAGS += -O1 -fno-omit-frame-pointer
endif
CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__