--- 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}