summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-12-19 07:25:19 -0800
committerDan Nicholson <dbn.lists@gmail.com>2012-12-19 07:30:49 -0800
commit4dac402b18f00cb9bf74b21631a073ae7acb04fc (patch)
treec8cf9f214f4d95e88b0209fbca3e9023d6c29c4b
parent72e1346d044ccf72735b2c4a2e72f79fa20b236b (diff)
downloadpkg-config-4dac402b18f00cb9bf74b21631a073ae7acb04fc.tar.gz
Extend default system library path for libdirs other than lib64
When the basename of the libdir is lib64, we currently add the paths /usr/lib64:/lib64 to the generic system library path of /usr/lib:/lib. Extend this coverage to other valid ABIs that use libdirs such as lib32 or libx32.
-rw-r--r--configure.ac9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 2b79704..c8786b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,12 +73,13 @@ AC_ARG_WITH([system_library_path],
[avoid -L flags from the given path])],
[system_library_path="$withval"],
[
-case "$libdir" in
-*lib64)
- system_library_path="/usr/lib64:/lib64:/usr/lib:/lib"
+pc_lib_sfx=`echo "$libdir" | sed 's:.*/lib::'`
+case "$pc_lib_sfx" in
+*/*|"")
+ system_library_path="/usr/lib:/lib"
;;
*)
- system_library_path="/usr/lib:/lib"
+ system_library_path="/usr/lib$pc_lib_sfx:/lib$pc_lib_sfx:/usr/lib:/lib"
;;
esac
])