resolve divdi3 on ppc 0.9.19
authorkoda
Sat, 20 Apr 2013 20:13:23 +0200
branch0.9.19
changeset 8927 3da5182d8682
parent 8926 8fde68cfeb71
child 8928 10a79d89ca31
resolve divdi3 on ppc
hedgewars/uPhysFSLayer.pas
--- a/hedgewars/uPhysFSLayer.pas	Tue Mar 26 01:18:04 2013 +0100
+++ b/hedgewars/uPhysFSLayer.pas	Sat Apr 20 20:13:23 2013 +0200
@@ -10,11 +10,14 @@
     {$linklib physfs}
     {$linklib physlayer}
 
-    {statically linking physfs brings IOKit dependency on OSX and
-     stdc++ under linux 32 bit because divdi3 is not defined}
+    {statically linking physfs brings IOKit dependency on OSX}
+    {divdi3 is found in stdc++ on linux x86 and in gcc_s.1 on osx ppc32}
     {$IFDEF PHYSFS_INTERNAL}
         {$IFDEF DARWIN}
             {$linkframework IOKit}
+            {$IFDEF CPU32}
+                {$linklib gcc_s.1}
+            {$ENDIF}
         {$ELSE}
             {$IFDEF CPU32}
                 {$linklib stdc++}