richfelker / musl-cross-make

Simple makefile-based build for musl cross compiler
MIT License
1.3k stars 266 forks source link

pre-build adjustment #160

Open paulwratt opened 2 years ago

paulwratt commented 2 years ago

it there any way to patch out -Wformat-diag in the GCC Makefile before you build

( yay for "string format police" filling my log files, and slowing down my automated build times ) :)

paulwratt commented 2 years ago

and do you know who to talk to to get ride of this:

In file included from ./tm.h:31,
#10 207.8                  from ../../src_gcc/gcc/genpreds.c:26:
#10 207.8 ../../src_gcc/gcc/config/s390/linux.h:78: warning: "MUSL_DYNAMIC_LINKER32" redefined
#10 207.8    78 | #define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-s390.so.1"
#10 207.8       | 
#10 207.8 In file included from ./tm.h:29,
#10 207.8                  from ../../src_gcc/gcc/genpreds.c:26:
#10 207.8 ../../src_gcc/gcc/config/linux.h:107: note: this is the location of the previous definition
#10 207.8   107 | #define MUSL_DYNAMIC_LINKER32 "/dev/null"
#10 207.8       | 
#10 207.8 In file included from ./tm.h:31,
#10 207.8                  from ../../src_gcc/gcc/genpreds.c:26:
#10 207.8 ../../src_gcc/gcc/config/s390/linux.h:79: warning: "MUSL_DYNAMIC_LINKER64" redefined
#10 207.8    79 | #define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-s390x.so.1"
#10 207.8       | 
#10 207.8 In file included from ./tm.h:29,
#10 207.8                  from ../../src_gcc/gcc/genpreds.c:26:
#10 207.8 ../../src_gcc/gcc/config/linux.h:108: note: this is the location of the previous definition
#10 207.8   108 | #define MUSL_DYNAMIC_LINKER64 "/dev/null"
#10 207.8       | 
#10 208.3 In file included from ./tm.h:31,
#10 208.3                  from ../../src_gcc/gcc/rtl.c:30:
#10 208.3 ../../src_gcc/gcc/config/s390/linux.h:78: warning: "MUSL_DYNAMIC_LINKER32" redefined
#10 208.3    78 | #define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-s390.so.1"
#10 208.3       | 
#10 208.3 

seems like there is a #pragma once (or appropriate) missing here somewhere