--- a/hedgewars/uPhysFSLayer.pas Tue Mar 19 14:14:40 2013 +0100
+++ b/hedgewars/uPhysFSLayer.pas Tue Mar 19 16:18:40 2013 +0100
@@ -9,8 +9,15 @@
{$IFNDEF WIN32}
{$linklib physfs}
{$linklib physlayer}
- {$IFDEF DARWIN}
- {$linkframework IOKit}
+
+ {statically linking physfs brings IOKit dependency on OSX while unders other
+ UNIX configuration divdi3 is not defined (so we add it ourselves)}
+ {$IFDEF PHYSFS_INTERNAL}
+ {$IFDEF DARWIN}
+ {$linkframework IOKit}
+ {$ELSE}
+ {$linklib stdc++}
+ {$ENDIF}
{$ENDIF}
{$ENDIF}