tce-load -i pcre-dev

cd swig-3.0.8

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --without-clisp --without-maximum-compile-warnings

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

make
sudo make install

The SWIG test-suite and examples are configured for the following languages:
lua perl5 python tcl 
