[PATCH] Fix building ltrace 0.5.3 for MIPS

Horst Kronstorfer horst.kronstorfer@aon.at
Wed Jan 5 19:44:00 GMT 2011


hi!

ltrace 0.5.3 currently fails to build for target mips because MY_TARGET 
(introduced by
patches/ltrace/0.5.3/150-allow-configurable-arch.patch) is set to 'mips' 
via CT_ARCH,
while the mips specific stuff in ltrace (0.5.3) is stored under 
sysdeps/linux-gnu/mipsel.

result: *** No rule to make target `mips/arch.h', needed by `sysdep.h'.  
Stop.

the following patch fixes this issue:

diff -r 78286fe70b62 scripts/build/debug/400-ltrace.sh
--- a/scripts/build/debug/400-ltrace.sh    Mon Jan 03 19:07:34 2011 +0100
+++ b/scripts/build/debug/400-ltrace.sh    Wed Jan 05 13:42:28 2011 +0100
@@ -33,6 +33,7 @@
              x86:32)     ltrace_host="i386";;
              x86:64)     ltrace_host="x86_64";;
              powerpc:*)  ltrace_host="ppc";;
+            mips:*)     ltrace_host="mipsel";;
              *)          ltrace_host="${CT_ARCH}";;
          esac
          CC="${CT_TARGET}-${CT_CC}"      \

Signed-off-by: "Horst Kronstorfer" <horst.kronstorfer@aon.at>

br
-h

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list