Skip to content

Commit

Permalink
link against libdl on linux by default
Browse files Browse the repository at this point in the history
- needed to load libcurl in std.net.curl
  • Loading branch information
MartinNowak committed Sep 16, 2015
1 parent 2c94b22 commit 541d9b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/link.d
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ extern (C++) int runLINK()
{
// Changes in ld for Ubuntu 11.10 require this to appear after phobos2
argv.push("-lrt");
// Link against libdl for phobos usage of dlopen
argv.push("-ldl");
}
if (global.params.verbose)
{
Expand Down

0 comments on commit 541d9b6

Please sign in to comment.