ia64/xen-unstable

changeset 11461:1d7c72e53d3d

[XEN] Define -fvisibility=hidden in CFLAGS to reduce -fpic cost
when compiling for x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Sep 13 13:52:03 2006 +0100 (2006-09-13)
parents 3e4fa8b5b245
children b7f763a8a7ef
files xen/arch/x86/Rules.mk
line diff
     1.1 --- a/xen/arch/x86/Rules.mk	Tue Sep 12 11:43:22 2006 -0600
     1.2 +++ b/xen/arch/x86/Rules.mk	Wed Sep 13 13:52:03 2006 +0100
     1.3 @@ -42,6 +42,9 @@ endif
     1.4  ifeq ($(TARGET_SUBARCH),x86_64)
     1.5  CFLAGS  += -mno-red-zone -fpic -fno-reorder-blocks
     1.6  CFLAGS  += -fno-asynchronous-unwind-tables
     1.7 +# -fvisibility=hidden reduces -fpic cost, if it's available
     1.8 +CFLAGS  += $(shell $(CC) -v --help 2>&1 | grep " -fvisibility=" | \
     1.9 +             grep -q hidden && echo "-fvisibility=hidden")
    1.10  LDFLAGS += -m elf_x86_64
    1.11  x86_32 := n
    1.12  x86_64 := y