cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Support for visibility=hidden in gcc 4.x

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 12 Jun 2006 15:44:44 -0700

On Tue, Jun 13, 2006 at 12:03:31AM +0200, Daniel Stenberg wrote:
> What would you say about this additional patch to the configure check?

Good idea! Something like the following would be a bit safer as it only
tests for the option on gcc (just in case there's some other compiler out
there where the option --hel means "send the contents of this directory
where the sun don't shine" or something equally unwanted :^) (this
is untested):

       if test "$GCC" = yes ; then
          if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
          ...
          else
            AC_MSG_RESULT([no (not supported)])
          fi
       else
          AC_MSG_RESULT([no (not gcc)])
       fi

Either way, if someone finds out how to do this with another compiler this
will all have to change.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-06-13