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 |