This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[libatomic][patch] Handle -mx32 like -m64


a x32 multilib libatomic build on x86-linux-gnu currently fails, because it
tries to build with -march=i486. This patch handles -mx32 like -m64. Ok for the
trunk?

  Matthias

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

	* configure.tgt (i[3456]86): Handle -mx32 like -m64.

--- libatomic/configure.tgt~	2012-11-06 09:49:00.000000000 +0100
+++ libatomic/configure.tgt	2012-11-19 18:01:13.153167467 +0100
@@ -59,7 +59,7 @@
 
   i[3456]86)
 	case " ${CC} ${CFLAGS} " in
-	  *" -m64 "*)
+	  *" -m64 "*|*" -mx32 "*)
 	    ;;
 	  *)
 	    if test -z "$with_arch"; then

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]