---

--- a/tools/llvm-config/llvm-config.in.in
+++ b/tools/llvm-config/llvm-config.in.in
@@ -92,8 +92,11 @@ if ($ABS_RUN_DIR eq $ABS_OBJ_ROOT) {
   $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.
+  $PREFIX     = "/usr/lib/llvm";
+  $INCLUDEDIR = "/usr/include/llvm";
+  $LIBDIR     = "/usr/lib/llvm/lib";
+  $BINDIR     = "/usr/bin";
 }
 
 sub usage;
@@ -170,7 +173,7 @@ if (@components == 0) {
 # 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);
 }
