[R-SIG-Mac] New intel based laptops

Kjell Konis konis at stats.ox.ac.uk
Fri Jan 20 13:11:48 CET 2006


> GNU gcc and gfortran from CVS have the same problem,
> basically. They don't know about --bundle, so linking
> of packages with shared libraries fails. But at least
> you can build both gcc and gfortran on MacIntel from
> here.

GNU gcc (at least for ppc) does know about -bundle.  It just can't be  
the first argument - this is a long standing parser bug.  Here is a  
configure patch that fixes the problem on ppc, it also removes -no- 
cpp-precomp.  Anyone want to try it on x86 OSX?

--- configure   2005-12-15 19:07:00.000000000 -0800
+++ configure   2005-12-22 12:36:44.000000000 -0800
@@ -28650,15 +28650,6 @@
#define HAVE_NO_SYMBOL_UNDERSCORE 1
_ACEOF
-    ## Need '-no-cpp-precomp' say J de Leeuw <deleeuw at stat.ucla.edu>  
and
-    ## http://fink.sourceforge.net/doc/porting/basics.php.
-    separator=""
-test -z "${separator}" && separator=" "
-if test -z "${R_XTRA_CPPFLAGS}"; then
-  R_XTRA_CPPFLAGS="-no-cpp-precomp"
-else
-  R_XTRA_CPPFLAGS="${R_XTRA_CPPFLAGS}${separator}-no-cpp-precomp"
-fi
      ;;
    hpux*)
      cat >>confdefs.h <<\_ACEOF
@@ -29200,9 +29191,9 @@
        ## The Darwin 1.[012] special casing is from libtool and  
could be
        ## eliminated ('-flat_namespace' is the default if available).
        darwin1.[012]*)
-        shlib_ldflags="-bundle -undefined suppress" ;;
+        shlib_ldflags="-undefined suppress -bundle" ;;
        *)
-       shlib_ldflags="-bundle -flat_namespace -undefined suppress" ;;
+       shlib_ldflags="-flat_namespace -undefined suppress -bundle" ;;
      esac
      shlib_cxxldflags="${shlib_ldflags}"
      if test "${ac_cv_lib_cc_dynamic_main}" = yes; then



More information about the R-SIG-Mac mailing list