• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libtool/libtool-0001-mips64-n64-linking.patch
Vicente Olivert RieraVicente Olivert Riera committed 4268d3967e218 Nov 2013
Raw file
Source viewDiff to previous
 
1
sets correct linker ABI flags on MIPS64
2
http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=5f7f7d9615bf650cf99d581a33b3e18357f79951
3
​
4
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
5
​
6
diff -ru libtool-2.4.2.orig/libltdl/m4/libtool.m4 libtool-2.4.2/libltdl/m4/libtool.m4
7
--- libtool-2.4.2.orig/libltdl/m4/libtool.m4    2013-11-11 11:44:30.419396295 +0000
8
+++ libtool-2.4.2/libltdl/m4/libtool.m4 2013-11-11 11:44:07.055032308 +0000
9
@@ -1312,6 +1312,38 @@
10
   rm -rf conftest*
11
   ;;
12
 
13
+mips64*-*linux*)
14
+  # Find out what ABI is being produced by ac_compile, and set linker
15
+  # options accordingly.
16
+  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
17
+  if AC_TRY_EVAL(ac_compile); then
18
+    emul=elf
19
+    case `/usr/bin/file conftest.$ac_objext` in
20
+      *32-bit*)
21
+      emul="${emul}32"
22
+      ;;
23
+      *64-bit*)
24
+      emul="${emul}64"
25
+      ;;
26
+    esac
27
+    case `/usr/bin/file conftest.$ac_objext` in
28
+      *MSB*)
29
+      emul="${emul}btsmip"
30
+      ;;
31
+      *LSB*)
32
+      emul="${emul}ltsmip"
33
+      ;;
34
+    esac
35
+    case `/usr/bin/file conftest.$ac_objext` in
36
+      *N32*)
37
+      emul="${emul}n32"
38
+      ;;
39
+    esac
40
+    LD="${LD-ld} -m $emul"
41
+    fi
42
+  rm -rf conftest*
43
+  ;;
44
+
45
 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
46
 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
47
   # Find out which ABI we are using.
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.