/usr/src/llvm-2.9/patches/0002-Fix-llvm-config-script.patch is in llvm-2.9-source 2.9+dfsg-3ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | ---
llvm-config.in.in | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
--- a/tools/llvm-config/llvm-config.in.in
+++ b/tools/llvm-config/llvm-config.in.in
@@ -65,7 +65,7 @@
chomp($ABS_OBJ_ROOT);
my $INCLUDEDIR = "$ABS_RUN_DIR/include";
-my $INCLUDEOPTION = "-I$INCLUDEDIR";
+my $INCLUDEOPTION = "-I/usr/lib/llvm-$VERSION/include";
my $LIBDIR = "$ABS_RUN_DIR/lib";
my $BINDIR = "$ABS_RUN_DIR/bin";
if ($ABS_RUN_DIR eq $ABS_OBJ_ROOT) {
@@ -76,8 +76,11 @@
$INCLUDEOPTION = "-I$INCLUDEDIR -I$LLVM_OBJ_ROOT/include"
} else {
# If installed, ignore the prefix the tree was configured with, use the
- # current prefix.
- $PREFIX = $ABS_RUN_DIR;
+ # Debian dirs.
+ $INCLUDEDIR = "/usr/lib/llvm-$VERSION/include";
+ $PREFIX = "/usr/lib/llvm-$VERSION";
+ $LIBDIR = "/usr/lib/llvm-$VERSION/lib";
+ $BINDIR = "/usr/lib/llvm-$VERSION/bin";
}
sub usage;
@@ -154,7 +157,7 @@
# Handle any arguments which require building our dependency graph.
if ($want_libs || $want_libnames || $want_libfiles) {
my @libs = expand_dependencies(@components);
- print join(' ', fix_library_names(@libs)), "\n" if ($want_libs);
+ print join(' ', fix_library_names(@libs)), " -L$LIBDIR\n" if ($want_libs);
print join(' ', @libs), "\n" if ($want_libnames);
print join(' ', fix_library_files(@libs)), "\n" if ($want_libfiles);
}
|