diff options
| author | 2017-01-04 17:25:11 +0000 | |
|---|---|---|
| committer | 2017-01-04 17:25:11 +0000 | |
| commit | 93c42b1eeec6595099383f5a49716129fd6d06b3 (patch) | |
| tree | 6512a63a426dd2eb8a54dbc9015011d4da382a96 /gnu/llvm/tools/clang/lib/Driver/Tools.cpp | |
| parent | Remove superfluous datatype that is 32 by default. Clang complains (diff) | |
| download | wireguard-openbsd-93c42b1eeec6595099383f5a49716129fd6d06b3.tar.xz wireguard-openbsd-93c42b1eeec6595099383f5a49716129fd6d06b3.zip | |
With clang as cross-compiler we need to make it pass the library path
to our linker. Additionally, we need to make sure the library path is
prefixed with the cross directory, which is sysroot.
ok kettenis@
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/lib/Driver/Tools.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/llvm/tools/clang/lib/Driver/Tools.cpp b/gnu/llvm/tools/clang/lib/Driver/Tools.cpp index 656a8fbbdaf..34cbd620b4b 100644 --- a/gnu/llvm/tools/clang/lib/Driver/Tools.cpp +++ b/gnu/llvm/tools/clang/lib/Driver/Tools.cpp @@ -7623,8 +7623,10 @@ void openbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA, } } - Args.AddAllArgs(CmdArgs, {options::OPT_L, options::OPT_T_Group, - options::OPT_e, options::OPT_s, options::OPT_t, + Args.AddAllArgs(CmdArgs, options::OPT_L); + getToolChain().AddFilePathLibArgs(Args, CmdArgs); + Args.AddAllArgs(CmdArgs, {options::OPT_T_Group, options::OPT_e, + options::OPT_s, options::OPT_t, options::OPT_Z_Flag, options::OPT_r}); AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs); |
