2008-07-16 18:38:47 Doug Goldstein napisaĆ(a): > Doug Goldstein wrote: > > all, > > > > I'm at the point that -Wl,-O1 appears to be successful. It's time to > > toss on -Wl,--hash-style=gnu. The issue is that we need glibc 2.5 or > > higher and not mips. So one solution is to put the following: > > > > default/linux: LDFLAGS="-Wl,-O1,--hash-style=gnu" > > default/linux/mips: LDFLAGS="-Wl,-O1" > > > > However, this means we'll have to put a has_version check in > > profile.bashrc of default/linux, which seems a bit cludgy.. > > > > Any suggestions? Comments? > Given the benefits vs the annoyances of not all platforms supporting it > and requiring 2 has_version checks in profile.bashrc.
has_version checks can be called only once per package: if [[ "${EBUILD_PHASE}" == "setup" ]] ; then if has_version "<sys-libs/glibc-2.5" || has_version "<sys-devel/binutils-2.17.50.0.2" ; then LDFLAGS="${LDFLAGS//-Wl,--hash-style=gnu/}" fi fi -- Arfrever Frehtes Taifersar Arahesis
signature.asc
Description: This is a digitally signed message part.