pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/MesaLib We want to use -fvisibility=hidden _u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/de6a01160898
branches:  trunk
changeset: 543910:de6a01160898
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Tue Jun 24 18:55:44 2008 +0000

description:
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:

 graphics/MesaLib/hacks.mk |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r be447e7d60d5 -r de6a01160898 graphics/MesaLib/hacks.mk
--- a/graphics/MesaLib/hacks.mk Tue Jun 24 15:13:02 2008 +0000
+++ b/graphics/MesaLib/hacks.mk Tue Jun 24 18:55:44 2008 +0000
@@ -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 @@
 
 .  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*)
+.    if !empty(PKGNAME:M*glut*)
+PKG_HACKS+=            no-gcc-hidden-visibility
+BUILDLINK_TRANSFORM+=  rm:-fvisibility=hidden
+.else
 PKG_HACKS+=            gcc-hidden-visibility
-BUILDLINK_TRANSFORM+=  rm:-fvisibility=hidden
+CFLAGS+=               -fvisibility=hidden
 .    endif
 .  endif
 ###



Home | Main Index | Thread Index | Old Index