In view of the comments so far, the path of least resistance for fixing fink to use SL Xcode 4.2 obviously appears to be reverting the system compiler under fink to gcc-4.2 and g++-4.2 for cc/gcc and c++/g++ respectively. The simple approach would be to enhance the compiler wrapper for path-prefix-10.6 with something like...
--- PkgVersion.pm.orig 2011-10-21 17:54:49.000000000 -0400 +++ PkgVersion.pm 2011-10-21 19:08:12.000000000 -0400 @@ -4953,6 +4953,14 @@ done IFS="\$save_IFS" export PATH="\$newpath" +if [[ `/usr/bin/sw_vers -productVersion | cut -d'.' -f1-2` == 10.6 ]]; then + if [ \$compiler == "cc" ] || [ \$compiler == "gcc" ]; then + compiler="gcc-4.2" + fi + if [ \$compiler == "c++" ] || [ \$compiler == "g++" ]; then + compiler="g++-4.2" + fi +fi exec \$compiler "-arch" "$arch" "\$@" EOF close GPP; so that on SL, gcc-4.2 and g++-4.2 are called directly instead of using the cc/gcc and cxx/g++ symlinks. This approach would seem to be robust and safe. Jack ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel