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 edit Makefile GLEW_PREFIX ?= /usr/local GLEW_DEST ?= /usr/local 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 POPT = make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" 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