On 28-08-2009 16:08:59 -0400, Mike Frysinger wrote: > > As such, we will leave > > it local to Gentoo Prefix until we can come up with a better idea. > > stick it behind userland_GNU ? i dont mind extending append-ldflags > in such a way, but the "pro" you listed originally (protect users from > typos in ebuilds) isnt a pro in my book -- it should fail.
basically we would need something like "linker_GNU", since all Prefix arches have userland_GNU set to true at some point we did stuff like grepping for GNU in ld -v output, but that's expensive, and it makes probably more sense to do some CHOST matches with known configurations then, handling the obvious cases (--{no-,}as-needed etc.) > i.e. something like: > append-ldflags() { > use userland_GNU || set -- $(test-flag-LD "$@") > ...... > } thanks -- Fabian Groffen Gentoo on a different level