[Rd] PATCH to Makefile.in w/ Makeconf LIBR variable update to allow builds within R to find Framework

Cyrus Harmon ch-r-devel at bobobeach.com
Wed Aug 17 18:13:05 CEST 2005


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 > \



More information about the R-devel mailing list