diff options
author | bjs <bjs@pkgsrc.org> | 2008-06-24 18:55:44 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-06-24 18:55:44 +0000 |
commit | 9b1548322b980d0b41cf19644e95fa6fd8d4b6d2 (patch) | |
tree | 1abba24dc8be4567115cf1137a13c5385dd7b7f4 /graphics | |
parent | 854e5e9465a16fb7ada6162c55fb2a5a07e7060f (diff) | |
download | pkgsrc-9b1548322b980d0b41cf19644e95fa6fd8d4b6d2.tar.gz |
We want to use -fvisibility=hidden _unless_ we're building graphics/glut,
not the other way around.
- This is the way that mesa expects things to be.
- Not doing this for MesaLib (at least for dri on NetBSD/amd64) will result
in reloc-related errors at link-time.
Building on NetBSD/amd64 was broken without this.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/MesaLib/hacks.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/graphics/MesaLib/hacks.mk b/graphics/MesaLib/hacks.mk index e196f7f843d..a924d92f60d 100644 --- a/graphics/MesaLib/hacks.mk +++ b/graphics/MesaLib/hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: hacks.mk,v 1.9 2008/06/05 13:03:41 tron Exp $ +# $NetBSD: hacks.mk,v 1.10 2008/06/24 18:55:44 bjs Exp $ .if !defined(MESALIBS_HACKS_MK) MESALIBS_HACKS_MK= # defined @@ -31,9 +31,12 @@ CFLAGS+= -fno-strict-aliasing . 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 +. if !empty(PKGNAME:M*glut*) +PKG_HACKS+= no-gcc-hidden-visibility BUILDLINK_TRANSFORM+= rm:-fvisibility=hidden +.else +PKG_HACKS+= gcc-hidden-visibility +CFLAGS+= -fvisibility=hidden . endif . endif ### |