« Return to Thread: gcc-4.7.0 error "ar: Cannot find plugin"

Re: gcc-4.7.0 error "ar: Cannot find plugin"

by Ian Lance Taylor-3 :: Rate this Message:

| View in Thread

Maxim Yegorushkin <maxim.yegorushkin@...> writes:

> As a temporary fix my build script creates ar, nm and ranlib as the
> following bash script:
>
>     #!/bin/bash
>
>     exe=$0
>     exe=${exe##*/} # basename
>     cmd="$1"
>     shift
>
>     exec PREFIX/x86_64-unknown-linux-gnu/bin/$exe "$cmd" --plugin
> PREFIX/libexec/gcc/x86_64-unknown-linux-gnu/GCC_VERSION/liblto_plugin.so
> "$@"
>
> (where PREFIX and GCC_VERSION get replaced with the corresponding
> values using `sed`)
>
> I'd like to know whether such an approach can cause any issues please?

Should be fine.

Ian

 « Return to Thread: gcc-4.7.0 error "ar: Cannot find plugin"