diff options
Diffstat (limited to 'newlib/configure.host')
-rw-r--r-- | newlib/configure.host | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host index bfa51669d..7e9336a0a 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -28,6 +28,7 @@ # newlib_io_long_long --enable-newlib-io-long-long ("yes", "no", "") # newlib_io_long_double --enable-newlib-io-long-double ("yes", "no", "") # newlib_global_stdio_streams --enable-global-stdio-streams ("yes", "no, "") +# newlib_fno_builtin --disable-newlib-fno-builtin ("yes", "no, "") # It sets the following shell variables: # newlib_cflags Special CFLAGS to use when building @@ -91,6 +92,19 @@ case "${target_optspace}:${host}" in ;; esac +case "${newlib_fno_builtin}:${host}" in + yes:*) + newlib_cflags="${newlib_cflags} -fno-builtin" + ;; + no:*) + newlib_cflags="${newlib_cflags}" + ;; + *:*) + # For now, all targets default to using -fno-builtin until tested without + newlib_cflags="${newlib_cflags} -fno-builtin" + ;; +esac + # Get the source directories to use for the CPU type. # machine_dir should supply CPU dependent routines, such as setjmp. # newlib_cflags is passed to gcc when compiling. |