I, recently, decided to move some of my home rails sites to my aging PPC-based mac mini. I’m still running Tiger on it because I’m lazy, don’t need any new features, and know how macports & fink work in Tiger. I ran through the normal, install fink, ruby package,… routine. But, when I got to compiling some of my gems, I got this error:
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: flag: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
Which seems pretty strange since I’m obviously running on 10.4. And, while I don’t know why the system is getting it wrong, a quick work around is to set the environment variable yourself.
export MACOSX_DEPLOYMENT_TARGET=10.4
Oddly, it doesn’t happen on my intel macs, so I suspect that there’s a bug somewhere in the PPC fink stack that just doesn’t effect all compilations. /shrug.
