From a9cfb33b6c82a99e852a06de2127ffaea85bc212 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 31 Aug 2018 17:44:33 +0100 Subject: Add --disable-newlib-fno-builtin to allow compilation without -fno-builtin for smaller and faster code. --- newlib/libc/machine/mn10300/configure | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'newlib/libc/machine/mn10300/configure') diff --git a/newlib/libc/machine/mn10300/configure b/newlib/libc/machine/mn10300/configure index c7bac1f..2b8a77c 100755 --- a/newlib/libc/machine/mn10300/configure +++ b/newlib/libc/machine/mn10300/configure @@ -689,6 +689,7 @@ enable_newlib_iconv enable_newlib_elix_level enable_newlib_io_float enable_newlib_supplied_syscalls +enable_newlib_fno_builtin enable_dependency_tracking enable_maintainer_mode ' @@ -1325,6 +1326,7 @@ Optional Features: --enable-newlib-elix-level supply desired elix library level (1-4) --disable-newlib-io-float disable printf/scanf family float support --disable-newlib-supplied-syscalls disable newlib from supplying syscalls + --disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-maintainer-mode enable make rules and dependencies not useful @@ -2489,6 +2491,18 @@ else fi +# Check whether --enable-newlib-fno-builtin was given. +if test "${enable_newlib_fno_builtin+set}" = set; then : + enableval=$enable_newlib_fno_builtin; case "${enableval}" in + yes) newlib_fno_builtin=yes ;; + no) newlib_fno_builtin=no ;; + *) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;; + esac +else + newlib_fno_builtin= +fi + + test -z "${with_target_subdir}" && with_target_subdir=. @@ -3335,8 +3349,6 @@ fi . ${newlib_basedir}/configure.host -newlib_cflags="${newlib_cflags} -fno-builtin" - NEWLIB_CFLAGS=${newlib_cflags} -- cgit v1.1