tce-load -i compiletc perl5 cd glibc-2.26 patch -Np1 -i ../glibc-2.26-fhs-1.patch mkdir build cd build echo "CFLAGS += -mtune=generic -Og -pipe" > configparms ../configure --prefix=/usr --libexecdir=/usr/lib/glibc --enable-kernel=4.2.9 --enable-stack-protector=strong libc_cv_slibdir=/lib --enable-obsolete-rpc --disable-werror find . -name config.make -type f -exec sed -i 's/-O2//g' {} \; find . -name config.status -type f -exec sed -i 's/-O2//g' {} \; make [6m 51.53s] mkdir -p /tmp/pkg/etc touch /tmp/pkg/etc/ld.so.conf sudo make install install_root=/tmp/pkg [without -Ox, or with -O0] In file included from ./../include/libc-symbols.h:58:0, from :0: /usr/src/glibc-2.24/build/config.h:4:3: error: #error "glibc cannot be compiled without optimization" # error "glibc cannot be compiled without optimization" ^~~~~ make[2]: *** [../Makerules:224: /usr/src/glibc-2.24/build/ucontext_i.h] Error 1 make[2]: Leaving directory '/usr/src/glibc-2.24/csu' make[1]: *** [Makefile:214: csu/subdir_lib] Error 2 make[1]: Leaving directory '/usr/src/glibc-2.24' make: *** [Makefile:9: all] Error 2