summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-01-23 08:08:25 +0000
committerjoerg <joerg@pkgsrc.org>2012-01-23 08:08:25 +0000
commit0eaeb6aa7750a84263a1cf442aef1563e12c5681 (patch)
treec63589595f7e5c9a8dab46c420f6bcea8634d6c6 /graphics/MesaLib
parent6c4a33b36a1d174aad78e76735b9d1bc3d969a76 (diff)
downloadpkgsrc-0eaeb6aa7750a84263a1cf442aef1563e12c5681.tar.gz
Disable integrated assembler for clang and force default visiblity to
hidden, otherwise some assembler relocations don't work on AMD64.
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r--graphics/MesaLib/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile
index a335f6cfeaa..904ca0c2d58 100644
--- a/graphics/MesaLib/Makefile
+++ b/graphics/MesaLib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.85 2011/08/21 16:44:30 abs Exp $
+# $NetBSD: Makefile,v 1.86 2012/01/23 08:08:25 joerg Exp $
PKGNAME= MesaLib-${MESA_PKGVERSION}
PKGREVISION= 3
@@ -73,6 +73,12 @@ pre-install:
pre-build:
cd ${WRKSRC} && ${RM} -fr src/glu src/glut progs
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+= -no-integrated-as -fvisibility=hidden
+.endif
+
# no configure phase
.include "../../mk/configure/pkg-config-override.mk"
.include "../../mk/bsd.pkg.mk"