Explorar o código

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

git-svn-id: trunk@13675 -
Vincent Snijders %!s(int64=16) %!d(string=hai) anos
pai
achega
d0c608609e
Modificáronse 1 ficheiros con 8 adicións e 3 borrados
  1. 8 3
      packages/cairo/src/cairo.pp

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

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