ia64/xen-unstable

view config/StdGNU.mk @ 17216:b0fe56f7b190

Add -fno-optimize-sibling-calls to debug CFLAGS. Also get rid of ?=
assignment to CFLAGS.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 17 11:02:40 2008 +0000 (2008-03-17)
parents 7e91007fa727
children 20215b87d0f3
line source
1 AS = $(CROSS_COMPILE)as
2 LD = $(CROSS_COMPILE)ld
3 CC = $(CROSS_COMPILE)gcc
4 CPP = $(CC) -E
5 AR = $(CROSS_COMPILE)ar
6 RANLIB = $(CROSS_COMPILE)ranlib
7 NM = $(CROSS_COMPILE)nm
8 STRIP = $(CROSS_COMPILE)strip
9 OBJCOPY = $(CROSS_COMPILE)objcopy
10 OBJDUMP = $(CROSS_COMPILE)objdump
11 SIZEUTIL = $(CROSS_COMPILE)size
13 MSGFMT = msgfmt
14 MSGMERGE = msgmerge
16 INSTALL = install
17 INSTALL_DIR = $(INSTALL) -d -m0755 -p
18 INSTALL_DATA = $(INSTALL) -m0644 -p
19 INSTALL_PROG = $(INSTALL) -m0755 -p
21 PREFIX ?= /usr
22 BINDIR = $(PREFIX)/bin
23 INCLUDEDIR = $(PREFIX)/include
24 LIBLEAFDIR = lib
25 LIBLEAFDIR_x86_64 = lib64
26 LIBDIR = $(PREFIX)/$(LIBLEAFDIR)
27 LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64)
28 MANDIR = $(PREFIX)/share/man
29 MAN1DIR = $(MANDIR)/man1
30 MAN8DIR = $(MANDIR)/man8
31 SBINDIR = $(PREFIX)/sbin
33 PRIVATE_PREFIX = $(LIBDIR)/xen
34 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
36 SOCKET_LIBS =
37 CURSES_LIBS = -lncurses
38 PTHREAD_LIBS = -lpthread
39 UTIL_LIBS = -lutil
40 SONAME_LDFLAG = -soname
41 SHLIB_CFLAGS = -shared
43 ifneq ($(debug),y)
44 CFLAGS += -O2 -fomit-frame-pointer
45 else
46 # Less than -O1 produces bad code and large stack frames
47 CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
48 endif