summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron>2007-12-05 21:39:01 +0000
committertron <tron>2007-12-05 21:39:01 +0000
commitb413a258d40eac232d367b8f4cccf39f63e3d021 (patch)
tree208f15bba58978c387b80736504c6b144a71e5eb
parent6c737cc9eabbd4a235a86a8cefa054ba6f158f5f (diff)
downloadpkgsrc-b413a258d40eac232d367b8f4cccf39f63e3d021.tar.gz
Use Apple's suggested work around(*) to fix linker problems under
Mac OS X Leopard. (*) http://developer.apple.com/qa/qa2007/qa1567.html
-rw-r--r--graphics/MesaLib/buildlink3.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/MesaLib/buildlink3.mk b/graphics/MesaLib/buildlink3.mk
index f6dc506c82b..fc1449e403a 100644
--- a/graphics/MesaLib/buildlink3.mk
+++ b/graphics/MesaLib/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.40 2007/08/13 11:18:40 seb Exp $
+# $NetBSD: buildlink3.mk,v 1.41 2007/12/05 21:39:01 tron Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
MESALIB_BUILDLINK3_MK:= ${MESALIB_BUILDLINK3_MK}+
@@ -20,6 +20,10 @@ BUILDLINK_PKGSRCDIR.MesaLib?= ../../graphics/MesaLib
BUILDLINK_CPPFLAGS.MesaLib= -DGLX_GLXEXT_LEGACY
.endif
+.if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
+BUILDLINK_LDFLAGS.MesaLib+= -Wl,-dylib_file -Wl,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
+.endif
+
BUILDLINK_TRANSFORM+= l:MesaGL:GL
.endif # MESALIB_BUILDLINK3_MK