[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
> 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*)
This is what caused all the problems with the "MesaLib" package.
Thanks a lot for figuring this out.
Matthias Scheler http://zhadum.org.uk/
Main Index |
Thread Index |