While building fink packages with clang on SL, I noticed a glitch in the readline package. It fails to link with clang 2.9svn as...
clang -dynamiclib -arch_only `/usr/bin/arch` -install_name /sw/lib/`echo libreadline.4.3.dylib | sed "s:\(.*\.[0-9]\)\.[0-9]:\1:"` -current_version 4.3 -compatibility_version 4.2.0 -v -o libreadline.4.3.dylib readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -L/sw/lib -lncurses Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix clang: error: no such file or directory: 'i386' This appears to be due to the line in the readline.patch... + SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/`echo $@ | sed "s:\\(.*\\.[0-9]\\)\\.[0-9]:\\1:"` -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version 4.2.0 -v' which on x86_64 fink incorrectly reports i386 instead of x86_64 since /usr/bin/arch reports on the running kernel and not the default binary execution type of Snow Leopard. Jack ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ 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