[XEN] Define -fvisibility=hidden in CFLAGS to reduce -fpic cost

when compiling for x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-09-13 13:52:03 +01:00
1 parent 84804f40f9
commit c6fed51d96
1 file changed
+3
+3
View File
@@ -42,6 +42,9 @@ endif
ifeq ($(TARGET_SUBARCH),x86_64)
CFLAGS += -mno-red-zone -fpic -fno-reorder-blocks
CFLAGS += -fno-asynchronous-unwind-tables
# -fvisibility=hidden reduces -fpic cost, if it's available
CFLAGS += $(shell $(CC) -v --help 2>&1 | grep " -fvisibility=" | \
grep -q hidden && echo "-fvisibility=hidden")
LDFLAGS += -m elf_x86_64
x86_32 := n
x86_64 := y
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.