bug-gnulib
[Top][All Lists]
Advanced

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

Re: visibility.m4


From: Paolo Bonzini
Subject: Re: visibility.m4
Date: Mon, 02 Nov 2009 10:54:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4

On 10/31/2009 05:34 PM, Mike Gran wrote:
Hello-

If I use visibility.m4 on a platform with a recent GCC (4.x) on
Cygwin, the visibility.m4 correctly discovers that gcc can compile
with -fvisibility="hidden".  But, on Cygwin (and probably most
non-ELF) gcc does not actualy implement the visibility and emits the
warning "visibility attribute not supported in this configuration"
instead.  Even so, the tests in visibility.m4 pass, and
HAVE_VISIBILITY is set in the affirmative.

In my humble opinion, it would be a good idea to add a "-werror" to
the test in visibility.m4 so that it won't set CFLAGS_VISIBILITY and
HAVE_VISIBILITY on those platforms that don't actually support it.

There is also a more comprehensive test in gcc.  I'll look at it.

Paolo





reply via email to

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