diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-08-09 21:12:09 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-08-09 21:12:09 +0000 |
commit | 037240a242b404e18308dd1a60937a5868bed702 (patch) | |
tree | 5c9ff2a9f35785c05923d464af5e37a05c677d32 /newlib/configure.host | |
parent | c9fadf3b49ec07bf3b25ba0e1a75842ddc702f4d (diff) | |
download | cygnal-037240a242b404e18308dd1a60937a5868bed702.tar.gz cygnal-037240a242b404e18308dd1a60937a5868bed702.tar.bz2 cygnal-037240a242b404e18308dd1a60937a5868bed702.zip |
2002-08-09 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Add check for --enable-newlib-io-pos-args
and define WANT_IO_POS_ARGS flag if enabled. Define
the flag by default for x86-linux configurations.
* configure.in: Add support for --enable-newlib-io-pos-args.
* libc/configure.in: Ditto.
* configure: Regenerated.
* libc/configure: Ditto.
* libc/stdio/Makefile.am: Specify -fshort-enums for compiling
vfprintf.c and vfiprintf.c.
* libc/stdio/Makefile.in: Regenerated.
* libc/stdio/vfprintf.c: Add positional argument support that
is enabled by compiling with -DWANT_IO_POS_ARGS.
Diffstat (limited to 'newlib/configure.host')
-rw-r--r-- | newlib/configure.host | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host index 47808e21e..6e1e94715 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -239,6 +239,12 @@ if [ "${newlib_io_float}" = "no" ] ; then newlib_cflags="${newlib_cflags} -DNO_FLOATING_POINT" fi +# Enable printf positional argument support if requested. + +if [ "${newlib_io_pos_args}" = "yes" ] ; then + newlib_cflags="${newlib_cflags} -DWANT_IO_POS_ARGS" +fi + # Verify if shared newlib support is allowed and set appropriate variables # We don't want to use libtool for platforms that we are not going to # support shared libraries. This is because it adds executable tests which @@ -324,6 +330,7 @@ case "${host}" in newlib_cflags="${newlib_cflags} -Wall" newlib_cflags="${newlib_cflags} -D_I386MACH_ALLOW_HW_INTERRUPTS" newlib_cflags="${newlib_cflags} -D_LOOSE_KERNEL_NAMES -DHAVE_FCNTL" + newlib_cflags="${newlib_cflags} -DWANT_IO_POS_ARGS" # --- Required when building a shared library ------------------------ newlib_cflags="${newlib_cflags} -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION" # --- The three lines below are optional ------------------------------ |