From ch-r-devel at bobobeach.com  Wed Aug 17 18:13:05 2005
From: ch-r-devel at bobobeach.com (Cyrus Harmon)
Date: Wed, 17 Aug 2005 09:13:05 -0700
Subject: [Rd] PATCH to Makefile.in w/ Makeconf LIBR variable update to allow
	builds within R to find Framework
Message-ID: <0A03695D-156F-4E36-801D-634A8E9B972E@bobobeach.com>

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



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