Sebastien Bourdeauducq
ddb4c548ae
Modifications accumulate and many are not suitable for nixpkgs upstream. Based on nixpkgs 3f629e3dd5293bd3c211c4950c418f7cfb4501af
17 lines
724 B
Diff
17 lines
724 B
Diff
diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp
|
|
index 94d426b..37f7794 100644
|
|
--- a/tools/llvm-config/llvm-config.cpp
|
|
+++ b/tools/llvm-config/llvm-config.cpp
|
|
@@ -333,6 +333,11 @@ int main(int argc, char **argv) {
|
|
ActiveIncludeOption = "-I" + ActiveIncludeDir;
|
|
}
|
|
|
|
+ /// Nix-specific multiple-output handling: override ActiveLibDir
|
|
+ if (!IsInDevelopmentTree) {
|
|
+ ActiveLibDir = std::string("@lib@") + "/lib" + LLVM_LIBDIR_SUFFIX;
|
|
+ }
|
|
+
|
|
/// We only use `shared library` mode in cases where the static library form
|
|
/// of the components provided are not available; note however that this is
|
|
/// skipped if we're run from within the build dir. However, once installed,
|