diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-08-21 05:51:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-08-27 19:46:26 +0200 |
commit | 8645420963417ffc64d2e88f64935249e0db225c (patch) | |
tree | 1d35667cf063d8c370634da66047d01455e9d741 /toolchain/newlib/Makefile | |
parent | 68769b1a66f9df3387811c9de7aa146c2e17ff92 (diff) |
add basic support for frosted operating system
https://github.com/insane-adding-machines/frosted
Rework our architecture selection and os dependent logic a little
bit to be cleaner. As only arm is supported, we only modify
arm systems to comply with new changeset.
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 $@ |