hedgewars/uPhysFSLayer.pas
branch0.9.19
changeset 8926 8fde68cfeb71
parent 8714 ab201a62d115
child 8927 3da5182d8682
--- a/hedgewars/uPhysFSLayer.pas	Sat Apr 20 02:20:15 2013 +0200
+++ b/hedgewars/uPhysFSLayer.pas	Tue Mar 26 01:18:04 2013 +0100
@@ -9,8 +9,17 @@
 {$IFNDEF WIN32}
     {$linklib physfs}
     {$linklib physlayer}
-    {$IFDEF DARWIN}
-        {$linkframework IOKit}
+
+    {statically linking physfs brings IOKit dependency on OSX and
+     stdc++ under linux 32 bit because divdi3 is not defined}
+    {$IFDEF PHYSFS_INTERNAL}
+        {$IFDEF DARWIN}
+            {$linkframework IOKit}
+        {$ELSE}
+            {$IFDEF CPU32}
+                {$linklib stdc++}
+            {$ENDIF}
+        {$ENDIF}
     {$ENDIF}
 {$ENDIF}