Copied over changes from ubuntu version of tre-0.8 from
https://launchpad.net/ubuntu/+archive/primary/+files/tre_0.8.0.orig.tar.gz
Modified the  Makefile.am in lib to compile a static library

Manually ran ar to build the library libtre.a with flto enabled.

ar cru  --plugin
/usr/local/clang+llvm-3.2-x86_64-linux-ubuntu-12.04/lib/LLVMgold.so
libtre.a libtre_a-tre-ast.o libtre_a-tre-compile.o
libtre_a-tre-match-backtrack.o