Mercurial > hg > graal-jvmci-8
changeset 577:f9d5cfc2afa2
Merge
author | xdono |
---|---|
date | Fri, 27 Feb 2009 15:13:00 -0800 |
parents | 69c752d99841 (diff) dae503d9f04c (current diff) |
children | f5eac45b1641 0fbdb4381b99 |
files | |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/make/linux/makefiles/gcc.make Thu Feb 26 10:57:13 2009 -0800 +++ b/make/linux/makefiles/gcc.make Fri Feb 27 15:13:00 2009 -0800 @@ -131,6 +131,14 @@ # Enable linker optimization LFLAGS += -Xlinker -O1 +# If this is a --hash-style=gnu system, use --hash-style=both +# The gnu .hash section won't work on some Linux systems like SuSE 10. +_HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | grep -- '--hash-style=gnu') +ifneq ($(_HAS_HASH_STYLE_GNU),) + LDFLAGS_HASH_STYLE = -Wl,--hash-style=both +endif +LFLAGS += $(LDFLAGS_HASH_STYLE) + # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. MAPFLAG = -Xlinker --version-script=FILENAME