link stdc++ (for physfs on linux) only when targetting 32bit
authorkoda
Tue, 26 Mar 2013 01:20:06 +0100
changeset 8786 da1b1d19bd4c
parent 8783 f1231a48fc48
child 8789 caba5291face
link stdc++ (for physfs on linux) only when targetting 32bit
hedgewars/SDLh.pas
--- a/hedgewars/SDLh.pas	Sat Mar 23 21:03:27 2013 +0200
+++ b/hedgewars/SDLh.pas	Tue Mar 26 01:20:06 2013 +0100
@@ -36,8 +36,10 @@
 
 {$IFDEF UNIX}
     {$IFNDEF DARWIN}
-        {necessary for statically linking physfs (divdi3 undefined)}
-        {$linklib stdc++}
+        {necessary for statically linking physfs (divdi3 undefined on 32 bit)}
+        {$IFDEF CPU32}
+            {$linklib stdc++}
+        {$ENDIF}
     {$ENDIF}
     {$IFDEF HAIKU}
         {$linklib root}