X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile;h=228d04545c969b76d4ff6ebf70f2fe026c11cf28;hb=27b0c3b575e54ab3e3a6af1fc6e3c844a3fbfd43;hp=cb47436f2ca972b407a6c9dadc0df39045917dc5;hpb=705e8c2441e0362407960d48c6e3be0ff90ab680;p=fedora-riscv.git diff --git a/Makefile b/Makefile index cb47436..228d045 100644 --- a/Makefile +++ b/Makefile @@ -340,10 +340,11 @@ stage3-chroot/usr/bin/tic: ncurses-$(NCURSES_VERSION).tgz PATH=$(ROOT)/fixed-gcc:$$PATH \ ./configure --host=riscv64-unknown-linux-gnu \ --prefix=/usr --libdir=/usr/lib64 \ - --with-shared + --with-shared \ + --with-termlib=tinfo \ + --enable-widec cd ncurses-$(NCURSES_VERSION) && PATH=$(ROOT)/fixed-gcc:$$PATH make cd ncurses-$(NCURSES_VERSION) && PATH=$(ROOT)/fixed-gcc:$$PATH make install DESTDIR=$(ROOT)/stage3-chroot - cd $(ROOT)/stage3-chroot/usr/lib64 && ln -sf libtinfo.so.6 libtinfo.so ncurses-$(NCURSES_VERSION).tgz: rm -f $@ $@-t @@ -489,22 +490,22 @@ gcc-$(GCC_X_VERSION).tar.gz: mv $@-t $@ # Cross-compile util-linux. -# XXX Be nice to fix ncurses/tinfo support which in theory should work. stage3-chroot/usr/bin/mount: util-linux-$(UTIL_LINUX_VERSION).tar.xz rm -rf util-linux-$(UTIL_LINUX_VERSION) tar -Jxf $^ cd util-linux-$(UTIL_LINUX_VERSION) && \ PATH=$(ROOT)/fixed-gcc:$$PATH \ + LDFLAGS=-L$(ROOT)/stage3-chroot/usr/lib64 \ ./configure \ --host=riscv64-unknown-linux-gnu \ --prefix=/usr --libdir=/usr/lib64 \ --without-python \ - --without-tinfo \ - --without-ncurses \ --without-systemd \ - --disable-makeinstall-chown + --disable-makeinstall-chown \ + --enable-static-programs=mount cd util-linux-$(UTIL_LINUX_VERSION) && PATH=$(ROOT)/fixed-gcc:$$PATH make cd util-linux-$(UTIL_LINUX_VERSION) && PATH=$(ROOT)/fixed-gcc:$$PATH make install DESTDIR=$(ROOT)/stage3-chroot + rm -f stage3-chroot/usr/lib64/*.la util-linux-$(UTIL_LINUX_VERSION).tar.xz: rm -f $@ $@-t