tce-load -i compiletc popt-dev ncursesw-dev wget https://downloads.sourceforge.net/gptfdisk/gptfdisk-1.0.10.tar.gz wget https://www.linuxfromscratch.org/patches/blfs/svn/gptfdisk-1.0.10-convenience-1.patch cd gptfdisk-1.0.10 patch -Np1 -i ../gptfdisk-1.0.10-convenience-1.patch edit gptcurses.cc ncurses.h -> ncursesw/ncurses.h edit Makefile CXXFLAGS+=-flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti install -dm 755 $(DESTDIR)/usr/local/sbin $(DESTDIR)/usr/share/man/man8 install -m755 gdisk cgdisk sgdisk fixparts $(DESTDIR)/usr/local/sbin install -m644 *.8 $(DESTDIR)/usr/local/share/man/man8 find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make [0m 17.20s] sudo make install