From c6ab31470779c8060caed75a461e247b81d2a7c2 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Sun, 16 Dec 2012 09:18:48 -0800 Subject: [PATCH] Add root /lib* directories to the default -L paths Avoids outputting -L/lib, which the linker will search in implicitly like -L/usr/lib. Freedesktop #58363 (https://bugs.freedesktop.org/show_bug.cgi?id=58363) --- configure.ac | 4 ++-- pkg-config.1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 7e887d4..eec2e74 100644 --- a/configure.ac +++ b/configure.ac @@ -75,10 +75,10 @@ AC_ARG_WITH([system_library_path], [ case "$libdir" in *lib64) - system_library_path="/usr/lib64:/usr/lib" + system_library_path="/usr/lib64:/usr/lib:/lib64:/lib" ;; *) - system_library_path="/usr/lib" + system_library_path="/usr/lib:/lib" ;; esac ]) diff --git a/pkg-config.1 b/pkg-config.1 index d76fd51..dd4a8f8 100644 --- a/pkg-config.1 +++ b/pkg-config.1 @@ -269,7 +269,7 @@ disables said behavior. Don't strip -I/usr/include out of cflags. .TP .I "PKG_CONFIG_ALLOW_SYSTEM_LIBS" -Don't strip -L/usr/lib out of libs +Don't strip -L/usr/lib or -L/lib out of libs. .TP .I "PKG_CONFIG_SYSROOT_DIR" Modify -I and -L to use the directories located in target sysroot. -- 1.7.7.6