diff options
Diffstat (limited to 'toolchain/newlib/Makefile')
-rw-r--r-- | toolchain/newlib/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/toolchain/newlib/Makefile b/toolchain/newlib/Makefile index affbe239a..d2b3a5758 100644 --- a/toolchain/newlib/Makefile +++ b/toolchain/newlib/Makefile @@ -6,6 +6,18 @@ include ../rules.mk include Makefile.inc include ${ADK_TOPDIR}/mk/buildhlp.mk +NEWLIB_CONFIGURE_ARGS:= --enable-newlib-io-long-long \ + --enable-newlib-register-fini \ + --disable-newlib-supplied-syscalls + +ifeq ($(ADK_TARGET_OS_FROSTED),y) +NEWLIB_CONFIGURE_ARGS+= --enable-newlib-fvwrite-in-streamio=no \ + --enable-newlib-fseek-optimization=no \ + --enable-newlib_wide_orient=no \ + --enable-newlib-unbuf-stream-opt=yes +endif + + $(WRKBUILD)/.configured: (cd $(WRKBUILD); \ CC='' \ @@ -13,10 +25,8 @@ $(WRKBUILD)/.configured: LDFLAGS='' \ ./configure --prefix=/usr \ --target=$(GNU_TARGET_NAME) \ - --enable-newlib-io-long-long \ - --enable-newlib-register-fini \ - --disable-newlib-supplied-syscalls \ --disable-nls \ + $(NEWLIB_CONFIGURE_ARGS) \ ) touch $@ |