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

Vinson Lee vlee at freedesktop.org
Wed Jun 4 10:45:53 PDT 2014


On Tue, Jun 3, 2014 at 2:11 PM, Ian Romanick <idr at freedesktop.org> wrote:
> On 06/02/2014 06:07 PM, 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.
>>
>> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
>
> Maybe Vinson can give a Tested-by too.
>
> Acked-by: Ian Romanick <ian.d.romanick at intel.com>
>

Builds for me with or without this patch on Solaris 11.1.

Tested-by: Vinson Lee <vlee at freedesktop.org>

>> ---
>>  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