Blob Blame Raw
--- nut-2.2.0/lib/libupsclient-config.in.multilib	2006-11-08 03:47:35.000000000 +0100
+++ nut-2.2.0/lib/libupsclient-config.in	2007-07-12 13:16:21.000000000 +0200
@@ -10,9 +10,17 @@
 Version="@PACKAGE_VERSION@"
 prefix=@prefix@
 exec_prefix=@exec_prefix@
-Libs="-L@libdir@ -lupsclient @LIBSSL_LDFLAGS@"
 Cflags="-I@includedir@ @LIBSSL_CFLAGS@"
 
+arch=$(/bin/arch)
+if [ "$arch" = "x86_64" -o "$arch" = "s390x" -o "$arch" = "ppc64" -o "$arch" = "ia64" ] ; then
+	libdir="/usr/lib64"
+else
+	libdir="/usr/lib"
+fi
+Libs="-L$libdir @UPSCLI_LIBOBJ@ @LIBSSL_LDFLAGS@"
+
+
 case "$1" in
 
   --cflags)