Mercurial > hg > graal-jvmci-8
comparison make/linux/makefiles/gcc.make @ 576:69c752d99841
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
Reviewed-by: tbell
author | ohair |
---|---|
date | Sat, 31 Jan 2009 17:19:42 -0800 |
parents | 9c2ecc2ffb12 |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
503:809e899c638b | 576:69c752d99841 |
---|---|
129 endif | 129 endif |
130 | 130 |
131 # Enable linker optimization | 131 # Enable linker optimization |
132 LFLAGS += -Xlinker -O1 | 132 LFLAGS += -Xlinker -O1 |
133 | 133 |
134 # If this is a --hash-style=gnu system, use --hash-style=both | |
135 # The gnu .hash section won't work on some Linux systems like SuSE 10. | |
136 _HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | grep -- '--hash-style=gnu') | |
137 ifneq ($(_HAS_HASH_STYLE_GNU),) | |
138 LDFLAGS_HASH_STYLE = -Wl,--hash-style=both | |
139 endif | |
140 LFLAGS += $(LDFLAGS_HASH_STYLE) | |
141 | |
134 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. | 142 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. |
135 MAPFLAG = -Xlinker --version-script=FILENAME | 143 MAPFLAG = -Xlinker --version-script=FILENAME |
136 | 144 |
137 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj | 145 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj |
138 SONAMEFLAG = -Xlinker -soname=SONAME | 146 SONAMEFLAG = -Xlinker -soname=SONAME |