diff mbox

[m68k] add multiarch definitions for m68k-linux-gnu

Message ID 50A41C0B.8060609@ubuntu.com
State New
Headers show

Commit Message

Matthias Klose Nov. 14, 2012, 10:32 p.m. UTC
The following patch adds the multiarch definitions for m68k-linux-gnu. Tested
using a Debian/Ubuntu package build. Ok for the trunk?

Here, I'm unsure if the definition needs to be further constrained.

  Matthias

Comments

Joseph Myers Nov. 14, 2012, 10:39 p.m. UTC | #1
On Wed, 14 Nov 2012, Matthias Klose wrote:

> The following patch adds the multiarch definitions for m68k-linux-gnu. Tested
> using a Debian/Ubuntu package build. Ok for the trunk?
> 
> Here, I'm unsure if the definition needs to be further constrained.

Classix m68k and ColdFire need different multiarch names; you need to 
avoid using a name for one on a compiler configured for the other.  (I 
think any configuration will always be --with-arch=m68k or --with-arch=cf 
so you should only need to consider M68K_ARCH rather than having 
per-multilib settings.)
diff mbox

Patch

2012-11-14  Matthias Klose  <doko@ubuntu.com>

	* config/m68k/t-linux: Define MULTIARCH_DIRNAME.

Index: config/m68k/t-linux
===================================================================
--- config/m68k/t-linux	(revision 193508)
+++ config/m68k/t-linux	(working copy)
@@ -19,6 +19,8 @@ 
 # Only include multilibs for 680x0 and ColdFire CPUs with an MMU.
 M68K_MLIB_CPU += && ((CPU ~ "^m680") || (CPU ~ "^mcf")) && (FLAGS ~ "FL_MMU")
 
+MULTIARCH_DIRNAME = $(call if_multiarch,m68k-linux-gnu)
+
 # This rule uses MULTILIB_MATCHES to generate a definition of
 # SYSROOT_SUFFIX_SPEC.
 sysroot-suffix.h: $(srcdir)/config/m68k/print-sysroot-suffix.sh