The attached packaging for cernlib2006-2006b-21 properly fixes the failures with the fortified strcpy on 10.9 by replacing instances of the illegal…
memmove(p, p+1, strlen(p+1) + 1)
as recommended by Apple. The info file as adds…
perl -pi -e 's|CDebugFlags -O0|CDebugFlags -O3 -fno-aggressive-loop-optimizations|g' config/MacOSX.cf
perl -pi -e 's|OptimisedFortranFlags -O0|OptimisedFortranFlags -O3 -fno-aggressive-loop-optimizations|g' config/MacOSX.cf
to the PatchScript. The problem optimization is aggressive loop optimizations producing undefined behaviors. Unfortunately -Waggressive-loop-optimizations doesn't detect every instance of these problem loop optimizations which produce undefined behaviors yet so we can't just append -fno-aggressive-loop-optimizations to a subset of source files. Tested without regressions on 'fink -m' on 10.9.