link stdc++ (for physfs on linux) only when targetting 32bit cmake_pascal
authorkoda
Tue, 26 Mar 2013 01:18:04 +0100
branchcmake_pascal
changeset 8849 db108c851315
parent 8846 c156ac6ddc2b
child 8852 0576439ef859
link stdc++ (for physfs on linux) only when targetting 32bit
hedgewars/uPhysFSLayer.pas
--- a/hedgewars/uPhysFSLayer.pas	Tue Mar 26 01:13:45 2013 +0100
+++ b/hedgewars/uPhysFSLayer.pas	Tue Mar 26 01:18:04 2013 +0100
@@ -10,13 +10,15 @@
     {$linklib physfs}
     {$linklib physlayer}
 
-    {statically linking physfs brings IOKit dependency on OSX while unders other
-     UNIX configuration divdi3 is not defined (so we add it ourselves)}
+    {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}
-            {$linklib stdc++}
+            {$IFDEF CPU32}
+                {$linklib stdc++}
+            {$ENDIF}
         {$ENDIF}
     {$ENDIF}
 {$ENDIF}