diff mbox

patches for gcc and strace

Message ID CAAA5faE8fB8i9gCQ+fL-1NofddyrO58Z-3n7LT4Ar00+_2EefQ@mail.gmail.com
State New
Headers show

Commit Message

Reinoud Koornstra Sept. 22, 2015, 8:26 p.m. UTC
HI Bryan,

I tried to get gcc to compile with musl and it simply doesn't in our
current states.
I tried gcc 4.9.3.
However, there's a patch for this and it comes from the musl-cross project at
https://bitbucket.org/GregorR/musl-cross/src.
I got the patch from buildroot where they included it in their tree.
Now gcc 4.9.3 does compile with musl.

Also, with musl, strace 4.10 fails to compile.
I got two patches that i fetched that will be included in strace 4.11
The sgidef's patgch is a super simple patch from myself, it find's
that include file in a different directory in case of musl. This isn't
a good patch as this will just work for musl and needs to be adjusted.
Please consider these patches and now people are able to build the
toolchain with musl.
I tested this for mips currently.
Thanks,

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

Patch

--- strace-4.10/configure.orig	2015-09-21 16:41:06.503808984 -0600
+++ strace-4.10/configure	2015-09-21 16:44:08.952221297 -0600
@@ -5872,7 +5872,7 @@ 
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-#include <sgidefs.h>
+#include <asm/sgidefs.h>
 int
 main ()
 {
@@ -5886,7 +5886,7 @@ 
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-#include <sgidefs.h>
+#include <asm/sgidefs.h>
 int
 main ()
 {
@@ -5900,7 +5900,7 @@ 
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-#include <sgidefs.h>
+#include <asm/sgidefs.h>
 int
 main ()
 {