slarrfun.c can be passed via the environment rather than in a patch; do this and only apply it to amd64.