Browse Source

* fixed linking with libcairo on darwin in a similar way as done in r13674

git-svn-id: trunk@13675 -
Vincent Snijders 16 years ago
parent
commit
d0c608609e
1 changed files with 8 additions and 3 deletions
  1. 8 3
      packages/cairo/src/cairo.pp

+ 8 - 3
packages/cairo/src/cairo.pp

@@ -63,10 +63,15 @@ const
     {$endif}
   {$ENDIF}
 {$else}
-  {$ifdef UseCustomLibs}
-  LIB_CAIRO = '';
+  {$ifdef darwin}
+    LIB_CAIRO = 'cairo';
+    {$linklib cairo}
   {$else}
-  LIB_CAIRO = 'libcairo.so.2';
+    {$ifdef UseCustomLibs}
+    LIB_CAIRO = '';
+    {$else}
+    LIB_CAIRO = 'libcairo.so.2';
+    {$endif}
   {$endif}
 {$endif}