Austin English <austinenglish at gmail.com> writes:
> When compiling wine, I get thousands of this error. Apparently visibility is
> not supported in 3.4 version, but when compiling on Ubuntu with 3.4.6, I
> don't get this error.
This is not a property of some specific GCC version, but it depends on
visibility support in both the assembler (gas 2.15 in this case) and linker
(Sun ld) used. Since nobody could devise a linker test for GCC's
gcc/configure.ac script, the only safe assumption is that a non-gld linker
does not support visibility.
So your only choices are rebuilding gcc with GNU ld (which I'd advise
against), or developing such a test. Maybe the Sun linker experts can help
here. Given that many linker improvements are backported to SunOS 5.{8, 9,
10} in patches, a simple version check is most likely not appropriate.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University