From 437c5c5085ff30b4a4960b2b53d06728c788361d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 17 Jan 2022 22:20:20 -0500 Subject: newlib: internalize HAVE_INITFINI_ARRAY This define is only used by newlib internally, so stop exporting it as HAVE_INITFINI_ARRAY since this can conflict with defines packages use themselves. We don't really need to add _ to HAVE_INIT_FINI too since it isn't exported in newlib.h, but might as well be consistent here. We can't (easily) add this to newlib_cflags like HAVE_INIT_FINI is because this is based on a compile-time test in the top configure, not on plain shell code in configure.host. We'd have to replicate the test in every subdir in order to have it passed down. --- newlib/configure.host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/configure.host') diff --git a/newlib/configure.host b/newlib/configure.host index c429dde1c..ca6b46f03 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -992,7 +992,7 @@ fi # Have init/finit if not explicitly specified otherwise if [ "x${have_init_fini}" != "xno" ]; then - newlib_cflags="${newlib_cflags} -DHAVE_INIT_FINI" + newlib_cflags="${newlib_cflags} -D_HAVE_INIT_FINI" fi if test -z "${have_crt0}" && test -n "${sys_dir}"; then -- cgit v1.2.3