File: configure-multiarch

package info (click to toggle)
spim 8.0%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,780 kB
  • sloc: asm: 8,560; ansic: 8,439; yacc: 2,298; makefile: 1,107; lex: 706; sh: 219
file content (35 lines) | stat: -rw-r--r-- 897 bytes parent folder | download | duplicates (5)
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;