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/acinclude.m4
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/acinclude.m4')
-rw-r--r--newlib/acinclude.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/newlib/acinclude.m4 b/newlib/acinclude.m4
index 8c2cdc3b8..19dfe0864 100644
--- a/newlib/acinclude.m4
+++ b/newlib/acinclude.m4
@@ -92,6 +92,16 @@ AC_ARG_ENABLE(newlib-supplied-syscalls,
AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes)
+dnl Support --disable-newlib-fno-builtin
+AC_ARG_ENABLE(newlib-fno-builtin,
+[ --disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions],
+[case "${enableval}" in
+ yes) newlib_fno_builtin=yes ;;
+ no) newlib_fno_builtin=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for newlib-fno-builtin option) ;;
+ esac], [newlib_fno_builtin=])dnl
+
+
dnl We may get other options which we don't document:
dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
@@ -202,8 +212,6 @@ fi
. [$]{newlib_basedir}/configure.host
-newlib_cflags="[$]{newlib_cflags} -fno-builtin"
-
NEWLIB_CFLAGS=${newlib_cflags}
AC_SUBST(NEWLIB_CFLAGS)