Skip to content

Commit

Permalink
Set rpath with -enable-dynamic-compile too (shared ldc-jit lib)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Apr 20, 2018
1 parent b91cc20 commit a48d15a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/linker-gcc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ void ArgsBuilder::build(llvm::StringRef outputPath,
args.push_back(ls);
}

// -rpath if linking against shared default libs
if (willLinkAgainstSharedDefaultLibs()) {
// -rpath if linking against shared default libs or ldc-jit
if (willLinkAgainstSharedDefaultLibs() || opts::enableDynamicCompile) {
const std::string rpath = ConfigFile::instance.rpath();
if (!rpath.empty())
addLdFlag("-rpath", rpath);
Expand Down

0 comments on commit a48d15a

Please sign in to comment.