crosstool-ng/scripts/build/debug
Chris Packham 3fa241a4e1 build: debug: strace: Add -D__USE_MISC to target CFLAGS
Similar to commit ca45a8f9 ("Add -D__GLIBC__ to target CFLAGS") newer
versions of strace bundle the kernel headers which cause build errors
such as:

[ALL  ]    In file included from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/in6.h:26,
[ALL  ]                     from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/if_bridge.h:19,
[ALL  ]                     from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/src/rtnl_mdb.c:16:
[ERROR] /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/libc-compat.h:109: error: "__UAPI_DEF_IN6_ADDR_ALT" redefined [-Werror]
[ALL  ]      109 | #define __UAPI_DEF_IN6_ADDR_ALT  1
[ALL  ]          |
[ALL  ]    In file included from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/src/rtnl_mdb.c:15:
[ALL  ] /home/x-tool/x-tools/arm-unknown-linux-musleabi/arm-unknown-linux-musleabi/sysroot/usr/include/netinet/in.h:401: note: this is the location of the previous definition
[ALL  ]      401 | #define __UAPI_DEF_IN6_ADDR_ALT 0
[ALL  ]          |
[ALL  ]    cc1: all warnings being treated as errors

By defining __USE_MISC we get __UAPI_DEF_IN6_ADDR_ALT defined in a
compatible manner.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-03-30 12:58:47 +13:00
..
200-duma.sh Avoid adding arch/cpu/tune flags for target to GCC build 2018-06-05 00:16:37 -07:00
300-gdb.sh Enable static libgcc when CT_GDB_NATIVE_STATIC_LIBSTDCXX is set 2020-05-26 16:34:31 +09:00
400-ltrace.sh Avoid adding arch/cpu/tune flags for target to GCC build 2018-06-05 00:16:37 -07:00
500-strace.sh build: debug: strace: Add -D__USE_MISC to target CFLAGS 2021-03-30 12:58:47 +13:00
duma.in Revert "Determine whether -E/-r option selects extended regexp" 2017-02-26 19:06:35 -08:00
gdbinit.in debug/gdb: install gdbinit sample file 2011-07-24 20:30:52 +02:00