diff options
author | Jim Wilson <jimw@sifive.com> | 2019-05-21 13:28:57 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2019-05-21 13:28:57 -0700 |
commit | 3d1860f0a294edca31b3a4b99b7e35f68f1b9b84 (patch) | |
tree | 269d6ed7b4f6d2babf0655bfbaadc13f06549b77 /Makefile.in | |
parent | e405fbb1da91b0a7c1ffe31f7c53193b907cea5c (diff) | |
download | riscv-gnu-toolchain-3d1860f0a294edca31b3a4b99b7e35f68f1b9b84.zip riscv-gnu-toolchain-3d1860f0a294edca31b3a4b99b7e35f68f1b9b84.tar.gz riscv-gnu-toolchain-3d1860f0a294edca31b3a4b99b7e35f68f1b9b84.tar.bz2 |
Build system patch from Optimitech to make nano lite-exit support work.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 59ee715..8c89d57 100644 --- a/Makefile.in +++ b/Makefile.in @@ -476,6 +476,7 @@ stamps/build-newlib: $(srcdir)/riscv-newlib stamps/build-gcc-newlib-stage1 --enable-newlib-io-long-double \ --enable-newlib-io-long-long \ --enable-newlib-io-c99-formats \ + --enable-newlib-register-fini \ CFLAGS_FOR_TARGET="-O2 $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-O2 $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) @@ -500,7 +501,6 @@ stamps/build-newlib-nano: $(srcdir)/riscv-newlib stamps/build-gcc-newlib-stage1 --enable-newlib-nano-formatted-io \ --disable-newlib-supplied-syscalls \ --disable-nls \ - --enable-newlib-register-fini \ CFLAGS_FOR_TARGET="-Os -ffunction-sections -fdata-sections $(CFLAGS_FOR_TARGET)" \ CXXFLAGS_FOR_TARGET="-Os -ffunction-sections -fdata-sections $(CXXFLAGS_FOR_TARGET)" $(MAKE) -C $(notdir $@) @@ -519,6 +519,8 @@ stamps/merge-newlib-nano: stamps/build-newlib-nano stamps/build-newlib $(INSTALL_DIR)/$(NEWLIB_TUPLE)/lib/$${mld}/libg_nano.a; \ cp $(builddir)/install-newlib-nano/$(NEWLIB_TUPLE)/lib/$${mld}/libgloss.a\ $(INSTALL_DIR)/$(NEWLIB_TUPLE)/lib/$${mld}/libgloss_nano.a; \ + cp $(builddir)/install-newlib-nano/$(NEWLIB_TUPLE)/lib/$${mld}/crt0.o\ + $(INSTALL_DIR)/$(NEWLIB_TUPLE)/lib/$${mld}/crt0.o; \ done # Copy nano header files into newlib install dir. mkdir -p $(INSTALL_DIR)/$(NEWLIB_TUPLE)/include/newlib-nano; \ |