With binutils >= 2.17 we can use --hash-style=both and this will work
with all versions of glibc. glibc >= 2.5 can take advantage of the new hash
style and should give better application startup.
export LDFLAGS = "${TARGET_LDFLAGS}"
export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \
-Wl,-rpath-link,${STAGING_DIR_TARGET}${layout_libdir} \
- -Wl,-O1"
+ -Wl,-O1 \
+ ${TARGET_LINK_HASH_STYLE} "
# Which flags to leave by strip-flags() in bin/build/oebuild.sh ?
ALLOWED_FLAGS = "-O -mcpu -march -pipe"
BUILD_OPTIMIZATION_pn-perl = "-O1"
BUILD_OPTIMIZATION_sparc = "-O2"
+TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=gnu"
+DISTRO_PR = ".1"
+
CXXFLAGS += "-fvisibility-inlines-hidden"
BUILD_OPTIMIZATION_pn-glibc = "-O2"
BUILD_OPTIMIZATION_sparc = "-O2"
+TARGET_LINK_HASH_STYLE = "-Wl,--hash-style=gnu"
+DISTRO_PR = ".1"
+
CXXFLAGS += "-fvisibility-inlines-hidden"