--- R-2.10.1/m4/R.m4.orig Wed Dec 23 07:10:26 2009 +++ R-2.10.1/m4/R.m4 Wed Dec 23 07:32:02 2009 @@ -2885,7 +2885,7 @@ fi acx_lapack_save_LIBS="${LIBS}" -LIBS="${BLAS_LIBS} ${FLIBS} ${LIBS}" +LIBS="${FLIBS} ${LIBS}" ## LAPACK linked to by default? (Could be in the BLAS libs.) if test "${acx_lapack_ok}" = no; then --- R-2.10.1/m4/clibs.m4.orig Tue Mar 25 13:26:17 2008 +++ R-2.10.1/m4/clibs.m4 Wed Dec 16 00:33:13 2009 @@ -148,7 +148,7 @@ [_AC_LINKER_OPTION([$r_arg], r_cv_c_libs)]) ;; # Ignore these flags. - -lang* | -lcrt[[01]].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) + -level* | -lang* | -lcrt[[01]].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) ;; -lkernel32) test x"$CYGWIN" != xyes && r_cv_c_libs="$r_cv_c_libs $r_arg" --- R-2.10.1/src/main/dotcode.c.orig Mon Sep 28 00:05:39 2009 +++ R-2.10.1/src/main/dotcode.c Sat Dec 19 00:45:11 2009 @@ -810,6 +810,9 @@ nm = CAR(args); args = resolveNativeRoutine(args, &ofun, &symbol, buf, NULL, NULL, NULL, call); +#ifdef DEBUG + fprintf(stderr, "Calling dyn. %s ...\n", buf); +#endif args = CDR(args); fun = (VarFun) ofun;