mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 00:55:49 +03:00
Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :)
This commit is contained in:
parent
e77e235307
commit
d0c5df393c
7 changed files with 33 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue