Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :)

This commit is contained in:
Tomas Lindquist Olsen 2008-10-02 03:25:46 +02:00
parent e77e235307
commit d0c5df393c
7 changed files with 33 additions and 10 deletions

View file

@ -151,15 +151,18 @@ int linkExecutable(const char* argv0)
}
// default libs
if(global.params.os == OSLinux || global.params.os == OSMacOSX)
{
args.push_back("-lpthread");
switch(global.params.os) {
case OSLinux:
case OSMacOSX:
args.push_back("-ldl");
case OSFreeBSD:
args.push_back("-lpthread");
args.push_back("-lm");
}
else if (global.params.os == OSWindows)
{
break;
case OSWindows:
// FIXME: I'd assume kernel32 etc
break;
}
// object files