[Pythonmac-SIG] RPy and libR.dylib

Jeff Whitaker jsw@cdc.noaa.gov
Fri, 8 Mar 2002 05:47:24 -0700 (MST)


Gerry:  Here's a patch for R that did the trick for me.

--- R-1.4.1/configure.orig      Thu Mar  7 17:37:52 2002
+++ R-1.4.1/configure   Thu Mar  7 17:40:59 2002
@@ -11636,7 +11636,7 @@
       darwin1.3)
         shlib_ldflags="-bundle -flat_namespace -undefined suppress" ;;
       *)
-       shlib_ldflags="-bundle -bundle_loader \$(R_HOME)/bin/R.bin" ;;
+       shlib_ldflags="-bundle -flat_namespace -undefined suppress" ;;
     esac
     shlib_cxxldflags="${shlib_ldflags}"
     ;;
@@ -11823,7 +11823,7 @@
 case "${host_os}" in
   darwin*)
     LIBR_EXT=".dylib"
-    LIBR_LDFLAGS="-dynamiclib"
+    LIBR_LDFLAGS="-dynamiclib -flat_namespace -undefined suppress -install_name
 ${prefix}/lib/R/bin/libR.dylib"
     ;;
 esac

If you install R with fink, just wait for a new revision to show up in
unstable CVS (I'll upload it later today).


After rebuilding R with this patch, rpy works fine for me.

-Jeff

-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/CDC  R/CDC1        Email  : jsw@cdc.noaa.gov
325 Broadway                Web    : www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80303-3328 Office : Skaggs Research Cntr 1D-124