diff options
author | tron <tron@pkgsrc.org> | 2007-12-05 21:39:01 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2007-12-05 21:39:01 +0000 |
commit | 168b2f63aa28974bbd5a33c7614ee544c89c03bf (patch) | |
tree | 208f15bba58978c387b80736504c6b144a71e5eb /graphics | |
parent | 1f5e44220732776ffe070db5ecd7cecc503b37d8 (diff) | |
download | pkgsrc-168b2f63aa28974bbd5a33c7614ee544c89c03bf.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
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/MesaLib/buildlink3.mk | 6 |
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 |