Patchwork powerpc64le configure fix

login
register
mail settings
Submitter Alan Modra
Date May 7, 2013, 1 a.m.
Message ID <20130507010008.GM5221@bubble.grove.modra.org>
Download mbox | patch
Permalink /patch/241865/
State New
Headers show

Comments

Alan Modra - May 7, 2013, 1 a.m.
Applying under the obvious rule.

2013-05-07  Anton Blanchard  <anton@samba.org>
    
	* configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
	for powerpc64 little endian.
	* configure: Regenerate.

Patch

diff --git a/gcc/configure.ac b/gcc/configure.ac
index a859d99..a289cf7 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4573,6 +4573,9 @@  fi
 case "$target:$tm_file" in
   powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
   case "$target" in
+     *le-*-linux*)
+     emul_name="-melf64lppc"
+      ;;
      *-*-linux*)
      emul_name="-melf64ppc"
       ;;