tce-load -i compiletc nspr-dev python readline-dev icu61-dev autoconf2.13 yasm cd mozjs-52.6.0gnome1 copy icu/readline libs to /usr/lib cd js/src CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti -D_GLIBCXX_USE_C99_MATH" ./configure --prefix=/usr/local --localstatedir=/var --enable-threadsafe --with-system-nspr --enable-readline --with-intl-api --with-system-zlib --with-system-icu find . -name autoconf.mk -type f -exec sed -i 's/-O3//g' {} \; find . -name backend.mk -type f -exec sed -i 's/-O3//g' {} \; find . -name autoconf.mk -type f -exec sed -i 's/FLAGS = -g/FLAGS = /g' {} \; find . -name autoconf.mk -type f -exec sed -i 's/ -g//g' {} \; find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [28m 21.02s] sudo make install # find /usr/local/include/mozjs-52/ /usr/local/lib/libmozjs-52.ajs /usr/local/lib/pkgconfig/mozjs-52.pc -type f -exec chmod 644 {} \; checking for readline in -lreadline... yes checking for icu-i18n >= 58.1... yes checking MOZ_ICU_CFLAGS... -I/usr/local/include checking MOZ_ICU_LIBS... -L/usr/local/lib -licui18n -licuuc -licudata