[Mesa-dev] [PATCH:mesa] Use -z defs instead of --no-undefined on Solaris

Emil Velikov emil.l.velikov at gmail.com
Wed Jun 4 11:26:28 PDT 2014


On 03/06/14 02:07, Alan Coopersmith wrote:
> While recent versions of the Solaris linker support --no-undefined,
> older ones do not, and even current ones get confused if the Makefile
> passes one form and libtool sneaks in the other.
> 
Perhaps we should have made this a configure time check rather than
hard-coding things. Someday we may want to fix this :)

FWIW the patch is
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>

> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
>  configure.ac |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/configure.ac b/configure.ac
> index 9c64400..29bfbc4 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -354,6 +354,8 @@ dnl
>  case "$host_os" in
>  openbsd* | darwin* )
>      LD_NO_UNDEFINED="" ;;
> +solaris*)
> +    LD_NO_UNDEFINED="-Wl,-z,defs" ;;
>  *)
>      LD_NO_UNDEFINED="-Wl,--no-undefined" ;;
>  esac
> 



More information about the mesa-dev mailing list