I had to use --with-pic=no due to [this bug](https://bugs.launchpad.net/bugs/503448). `-fPIC` is required on all of the CXX statements, otherwise:

```
rm -f libGVars3_headless.so  libGVars3_headless.so.0  libGVars3_headless.so.0.6
g++ -march=armv6 -shared -march=armv6 -o libGVars3_headless.so.0.6 src/gvars3.o src/GUI.o src/GStringUtil.o src/gvars2.o src/serialize.o src/GUI_none.o src/GUI_impl_headless.o src/inst.o  src/GUI_no_language.o -lm 
/usr/bin/ld: src/gvars3.o: relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
src/gvars3.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libGVars3_headless.so] Error 1
```