pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: graphics/glut symbol problems
On Thu, Jun 05, 2008 at 09:42:56AM +0100, raymond.meyer%rambler.ru@localhost
wrote:
> Next, reading graphics/MesaLib/hacks.mk I see the following compiler flags,
> which might help to solve the problem:
>
> . if !empty(CC_VERSION:Mgcc-[4-9]*)
> # Don't hide symbols for glut by default, it doesn't know how to unhide them.
> . if empty(PKGNAME:M*glut*)
> PKG_HACKS+= gcc-hidden-visibility
> CFLAGS+= -fvisibility=hidden
> . endif
> . endif
>
> However, if I don't want to hide the symbols, then shouldn't the above
> be -fvisibility=default? Can anyone elaborate on this?
It's quite simple: it is broken.
The above code should read:
. if !empty(CC_VERSION:Mgcc-[4-9]*)
# Don't hide symbols for glut by default, it doesn't know how to unhide them.
. if empty(PKGNAME:M*glut*)
PKG_HACKS+= gcc-hidden-visibility
BUILDLINK_TRANSFORM+= rm:-fvisibility=hidden
. endif
. endif
This is what caused all the problems with the "MesaLib" package.
Thanks a lot for figuring this out.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/
Home |
Main Index |
Thread Index |
Old Index