tce-load -i compiletc readline-dev openssl-dev

cd ipsec-tools-0.8.2

CC="gcc -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --with-kernel-headers=/usr/include --disable-security-context

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

libtool: link: gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -D_GNU_SOURCE -include ../../src/include-glibc/glibc-bugs.h -I../../src/include-glibc -I../../src/include-glibc -DSYSCONFDIR=\"/usr/local/etc\" -DADMINPORTDIR=\"/var/racoon\" -Wall -Wno-unused -Wno-format -o racoonctl racoonctl.o str2val.o  ./.libs/libracoon.a ../libipsec/.libs/libipsec.a -lfl -lutil -lcrypto -lresolv -lreadline
/usr/local/lib/libfl.so: undefined reference to `yylex'

remove -lfl

[will not link dynamically]

make
sudo make install

