hedgewars/uPhysFSLayer.pas
branchcmake_pascal
changeset 8800 5e837e6d8f94
parent 8714 ab201a62d115
child 8849 db108c851315
--- a/hedgewars/uPhysFSLayer.pas	Tue Mar 19 14:14:40 2013 +0100
+++ b/hedgewars/uPhysFSLayer.pas	Tue Mar 19 16:18:40 2013 +0100
@@ -9,8 +9,15 @@
 {$IFNDEF WIN32}
     {$linklib physfs}
     {$linklib physlayer}
-    {$IFDEF DARWIN}
-        {$linkframework IOKit}
+
+    {statically linking physfs brings IOKit dependency on OSX while unders other
+     UNIX configuration divdi3 is not defined (so we add it ourselves)}
+    {$IFDEF PHYSFS_INTERNAL}
+        {$IFDEF DARWIN}
+            {$linkframework IOKit}
+        {$ELSE}
+            {$linklib stdc++}
+        {$ENDIF}
     {$ENDIF}
 {$ENDIF}