From 4dac402b18f00cb9bf74b21631a073ae7acb04fc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 19 Dec 2012 07:25:19 -0800 Subject: 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. --- configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'configure.ac') 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 ]) -- cgit v1.2.1