#1862: Configure.pl should actually test for gcc -fvisibility=hidden support
----------------------+-----------------------------------------------------
Reporter: doughera | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 2.11
Component: none | Version: 2.10.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
Currently, Configure.pl tests (in config/auto/warnings.pm) whether the
compiler accepts the gcc option -fvisibility=hidden. Independently, in
config/auto/gcc.pm, Configure.pl sets
attribute((visibility("default")) for gcc versions >= 4.0. Normally, this
works fine, since -fvisibility=hidden is not part of the official gcc
releases prior to 4.0.
However, in TT #1832 and TT #1255, it looks like users were running a
version of gcc-3.4.6 that had been patched to accept -fvisibility=hidden.
The net result is that the build failed with linker errors.
Parrot should make the tests consistent for the command line option
-fvisibility and the attribute((visibility("default")). Either both
should be enabled only for gcc >= 4.0, or both should be enabled only when
an appropriate test file can be successfully compiled.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1862>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets