tce-load -i compiletc openssl-dev readline-dev bash wget http://deb.debian.org/debian/pool/main/w/wvstreams/wvstreams_4.6.1.orig.tar.gz wget http://deb.debian.org/debian/pool/main/w/wvstreams/wvstreams_4.6.1-15.debian.tar.xz cd wvstreams-4.6.1 patch -Np1 -i ../0001-Fix-narrowing-conversion-error.patch patch -Np1 -i ../01_kfreebsd_ftbfs.diff patch -Np1 -i ../02_doc_path.diff patch -Np1 -i ../03_html_sgml.diff patch -Np1 -i ../04_signed_request.diff patch -Np1 -i ../06_gcc-4.7.diff patch -Np1 -i ../07_buildflags.diff patch -Np1 -i ../08_openssl-1.0.diff patch -Np1 -i ../09_glibc-2.12.diff patch -Np1 -i ../10_readline.diff patch -Np1 -i ../11_typos.diff patch -Np1 -i ../12_cross.diff patch -Np1 -i ../12_increase_task_stack.patch patch -Np1 -i ../gcc-6.patch patch -Np1 -i ../wvstreams_openssl1.1.patch CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var find . -name wvrules-posix.mk -type f -exec sed -i 's/-O2//g' {} \; make [2m 0.04s] sudo make install