On 04-10-2009 00:11:06 +0300, Samuli Suominen wrote:
 > Perhaps we could add a new function to the flag-o-matic that does the
> > CHOST check, and appends the flag, so the check code wouldn't have to be
> > duplicated in ebuilds? It should be rather trivial.
> > 
> 
> ok, chost check would be cheap. how about,
> 
> no-as-needed() {
>       case $($(tc-getLD) -v 2>&1 </dev/null) in
>       *GNU*) # GNU ld
>               echo "-Wl,--no-as-needed" ;;
>       esac
> }
> 
> usage: append-ldflags $(no-as-needed)

that would work fine for me, and all possible future cases I can think
of


-- 
Fabian Groffen
Gentoo on a different level

Reply via email to