1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: Fix configury with multiarch libc.
Bug-Ubuntu: https://bugs.launchpad.net/bugs/756116
Bug-Debian: http://bugs.debian.org/629693
Forwarded: no
Author: Matthias Klose <doko@ubuntu.com>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2012-01-30
--- spim-8.0+dfsg.orig/spim/Configure
+++ spim-8.0+dfsg/spim/Configure
@@ -74,7 +74,15 @@ fi;
rm -f endian endian.exe
-if [ -f /usr/lib/libc.a ]; then
+multiarch=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+if [ -f /usr/lib/$multiarch/libc.a ]; then
+ # Debian Universe:
+ echo Looks like a Debian universe exists...
+ echo Scaning libc
+ nm /usr/lib/$multiarch/libc.a > library_contents
+ set flag = -s
+else if [ -f /usr/lib/libc.a ]; then
# BSD Universe:
echo Looks like a BSD universe exists...
echo Scaning libc
@@ -106,6 +114,7 @@ else if [ -f /usr/lib64/libc.a ]; then
fi;
fi;
fi;
+fi;
fi;
fi;
|