AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

gcc 4.1.1 -fvisibility=hidden option not configured

  • 1.  gcc 4.1.1 -fvisibility=hidden option not configured

    Posted Wed October 12, 2011 03:53 PM

    Originally posted by: KerryF


    I'm using the GCC 4.1.1 compiler on a AIX 5.3 system. I am needing to use the -fvisibility=hidden option, but I get the following warning when building:

    warning: visibility attribute not supported in this configuration; ignored

    Has anyone seen this before? If so, is there a fix?


  • 2.  Re: gcc 4.1.1 -fvisibility=hidden option not configured

    Posted Mon October 17, 2011 02:05 PM

    Originally posted by: KerryF


    When gcc is configured and built it looks at the version of the system's 'ld' command to determine whether or not it can use the -fvisibility=hidden option. In this case the version of 'ld' is 1.65 which doesn't have the hidden capability.