Cyrus Harmon
2005-Aug-17 16:13 UTC
[Rd] PATCH to Makefile.in w/ Makeconf LIBR variable update to allow builds within R to find Framework
Dear r-devel, When R has been installed in a non-standard location (or any location where Apple's version of gcc isn't going to, by default, look for frameworks specified with the -framework arg), builds of R packages fail because the linker can't find the framework. The following patch to Makefile.in enables Makefile to patch Makeconf appropriately to drop in the -F argument to the appropriate place. Thanks for considering this, Cyrus Index: Makefile.in ==================================================================--- Makefile.in (revision 35301) +++ Makefile.in (working copy) @@ -84,7 +84,7 @@ $(INSTALL_DATA) $${f} "$(rhome)"; \ done @WANT_R_FRAMEWORK_TRUE@ $(MAKE) install-R-framework - at WANT_R_FRAMEWORK_TRUE@ @(sed 's/^LIBR =.*/LIBR = - framework R/' \ + at WANT_R_FRAMEWORK_TRUE@ @(sed 's|^LIBR =.*|LIBR = -F$ (R_FRAMEWORK_DIR)/.. -framework R|' \ @WANT_R_FRAMEWORK_TRUE@ $(top_builddir)/etc/Makeconf > "$(rhome)/etc/Makeconf") @WANT_R_FRAMEWORK_TRUE@ @(sed 's/Versions\/$(VERSION)\/ Resources/Resources/' \ @WANT_R_FRAMEWORK_TRUE@ $(R_FRAMEWORK_DIR)/Resources/ bin/R > \