[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: false positive in ld-version-script.m4

From: Simon Josefsson
Subject: Re: false positive in ld-version-script.m4
Date: Tue, 14 Apr 2009 00:53:14 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux)

Ralf Wildenhues <address@hidden> writes:

> Hi Simon,
> * Simon Josefsson wrote on Fri, Apr 03, 2009 at 02:24:04PM CEST:
>> --- a/m4/ld-version-script.m4
>> +++ b/m4/ld-version-script.m4
>> @@ -6,6 +6,11 @@ dnl with or without modifications, as long as this notice 
>> is preserved.
>>  dnl From Simon Josefsson
>> +# FIXME: The test below returns a false positive for mingw
>> +# cross-compiles, 'local:' statements does not reduce number of
>> +# exported symbols in a DLL.  Use --disable-ld-version-script to work
>> +# around the problem.
>> +
> Why not
>   ...
>   case $host_os in mingw*) disable... ;; esac
> ?

That would work for now, but isn't such hard coding bad style in case
mingw ever fixes this problem?

Perhaps mingw cannot ever implement hiding of local symbols through
version scripts, and in that case we might hard code the check result.
But then, doesn't it seem better for gcc/ld to reject a version script
if it is impossible to support it?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]