[PATCH] libgcrypt-config: handle /usr/lib64, /lib64 just like /usr/lib and /lib

Diego Elio Pettenò flameeyes at flameeyes.eu
Thu Sep 22 16:34:44 CEST 2011


Distributions such as Gentoo Linux use /usr/lib64 for system libraries on
multilib setups, so in those cases, ignore the libraries as well.

Signed-off-by: Diego Elio Pettenò <flameeyes at flameeyes.eu>
---
 src/libgcrypt-config.in |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/libgcrypt-config.in b/src/libgcrypt-config.in
index c052638..4c8ddc3 100644
--- a/src/libgcrypt-config.in
+++ b/src/libgcrypt-config.in
@@ -154,9 +154,12 @@ if test "$echo_libs" = "yes"; then
     libs_final="$libs"
 
     # Set up `libdirs'.
-    if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then
-	libdirs="-L$libdir"
-    fi
+    case "$libdir" in
+        /usr/lib|/usr/lib64|/lib|/lib64) ;;
+        *)
+            libdirs="-L$libdir"
+            ;;
+    esac
 
     # Set up `libs_final'.
     libs_final="$libs_final $gpg_error_libs"
-- 
1.7.6.1




More information about the Gcrypt-devel mailing list