I had something that sounds the same. Setting CCFLAGS didnt work, but
sh ./Configure -de -Accflags='-fPIC' (etc) did give a libperl that worked on AMD x86_64. With 5.10 though. Niels L Dan Axtell wrote:
You will need to compile perl with -fPIC on x86_64, I think I did it with: ccflags='-fPIC' sh Configure -Dprefix /path to perl I can't remember _exactly_ if that was it though. The other options would be to manually the edit the Makefiles but I don't remember having to do that.