This needs the (now relatively common) `libtool` patch, but allows us to sidestep a bunch of issues that relate to linking static libraries into position-independent executables.