Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Beniston <jon@beniston.com>2018-08-31 19:44:33 +0300
committerJeff Johnston <jjohnstn@redhat.com>2018-08-31 22:40:42 +0300
commita9cfb33b6c82a99e852a06de2127ffaea85bc212 (patch)
treeff82a3e0b59d37c6384357410587e74254152a48 /newlib/configure
parentfc3a8ecca5f4924079668f9f9615b4619e5dc810 (diff)
Add --disable-newlib-fno-builtin to allow compilation without -fno-builtin for smaller and faster code.newlib-snapshot-20180831
Diffstat (limited to 'newlib/configure')
-rwxr-xr-xnewlib/configure20
1 files changed, 16 insertions, 4 deletions
diff --git a/newlib/configure b/newlib/configure
index d88180863..192a0b37a 100755
--- a/newlib/configure
+++ b/newlib/configure
@@ -813,6 +813,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
enable_shared
@@ -1487,6 +1488,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
@@ -3170,6 +3172,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=.
@@ -4016,8 +4030,6 @@ fi
. ${newlib_basedir}/configure.host
-newlib_cflags="${newlib_cflags} -fno-builtin"
-
NEWLIB_CFLAGS=${newlib_cflags}
@@ -11828,7 +11840,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11831 "configure"
+#line 11843 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11934,7 +11946,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11937 "configure"
+#line 11949 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H