tce-load -i compiletc glu-dev https://downloads.sourceforge.net/project/glew/glew/2.1.0/glew-2.1.0.tgz cd glew-2.1.0 sed -i 's%lib64%lib%g' config/Makefile.linux sed -i -e '/glew.lib.static:/d' -e '/0644 .*STATIC/d' -e 's/glew.lib.static//' Makefile edit Makefile GLEW_PREFIX ?= /usr/local GLEW_DEST ?= /usr/local remove -DGLEW_NO_GLU edit config/Makefile.linux ifeq (${ARCH64},true) LDFLAGS.EXTRA = -L/usr/local/lib -L/usr/lib LIBDIR = $(GLEW_DEST)/lib else LDFLAGS.EXTRA = -L/usr/local/lib -L/usr/lib LIBDIR = $(GLEW_DEST)/lib LDFLAGS.GL = -lGL -lX11 -lGLU POPT = make CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" [0m 14.34s] sudo make install dep blender mesa-demos /usr/local/lib/libGLEW.so /usr/local/lib/libGLEW.so.2.1 /usr/local/lib/libGLEW.so.2.1.0 existing /usr/local/lib/libGLEW.so /usr/local/lib/libGLEW.so.1.12 /usr/local/lib/libGLEW.so.1.12.0