| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: patch-configure.ac,v 1.7 2024/01/08 23:03:50 mef Exp $ | | 1 | $NetBSD: patch-configure.ac,v 1.8 2024/01/08 23:13:03 mef Exp $ |
2 | | | 2 | |
3 | Do not include system paths in R_LD_LIBRARY_PATH. | | 3 | Do not include system paths in R_LD_LIBRARY_PATH. |
4 | NetBSD, FreeBSD, DragonFly, Darwin and Solaris fixes | | 4 | NetBSD, FreeBSD, DragonFly, Darwin and Solaris fixes |
5 | | | 5 | |
6 | --- configure.ac.orig 2019-06-08 08:57:35.738653089 +0000 | | 6 | --- configure.ac.orig 2019-06-08 08:57:35.738653089 +0000 |
7 | +++ configure.ac | | 7 | +++ configure.ac |
8 | @@ -33,6 +33,7 @@ m4_define([R_VERSION], | | 8 | @@ -33,6 +33,7 @@ m4_define([R_VERSION], |
9 | AC_INIT([R],[R_VERSION],[https://bugs.r-project.org],[R],[https://www.r-project.org]) | | 9 | AC_INIT([R],[R_VERSION],[https://bugs.r-project.org],[R],[https://www.r-project.org]) |
10 | AC_CONFIG_SRCDIR([src/include/Defn.h]) | | 10 | AC_CONFIG_SRCDIR([src/include/Defn.h]) |
11 | AC_CONFIG_AUX_DIR([tools]) | | 11 | AC_CONFIG_AUX_DIR([tools]) |
12 | +AC_CONFIG_MACRO_DIR([m4]) | | 12 | +AC_CONFIG_MACRO_DIR([m4]) |
13 | | | 13 | |
14 | ### * Information on the package. | | 14 | ### * Information on the package. |
| @@ -75,27 +75,27 @@ NetBSD, FreeBSD, DragonFly, Darwin and S | | | @@ -75,27 +75,27 @@ NetBSD, FreeBSD, DragonFly, Darwin and S |
75 | shlib_cxxldflags="-shared" | | 75 | shlib_cxxldflags="-shared" |
76 | fi | | 76 | fi |
77 | else | | 77 | else |
78 | + shlib_ldflags="-G" | | 78 | + shlib_ldflags="-G" |
79 | + shlib_cxxldflags="-G" | | 79 | + shlib_cxxldflags="-G" |
80 | cpicflags="-KPIC" | | 80 | cpicflags="-KPIC" |
81 | if test "`basename ${CXX}`" = "CC" ; then | | 81 | if test "`basename ${CXX}`" = "CC" ; then |
82 | ## Forte version 7 needs -lCstd: Forte 6 does not. | | 82 | ## Forte version 7 needs -lCstd: Forte 6 does not. |
83 | @@ -1495,7 +1502,7 @@ fi | | 83 | @@ -1495,7 +1502,7 @@ fi |
84 | : ${CXXPICFLAGS="${cxxpicflags}"} | | 84 | : ${CXXPICFLAGS="${cxxpicflags}"} |
85 | if test -n "${CXX}" -a -z "${CXXPICFLAGS}"; then | | 85 | if test -n "${CXX}" -a -z "${CXXPICFLAGS}"; then |
86 | case "${host_os}" in | | 86 | case "${host_os}" in |
87 | - aix*|mingw*|msys) | | 87 | - aix*|mingw*|msys) |
88 | + aix*|mingw*||msys|darwin*) | | 88 | + aix*|mingw*|msys|darwin*) |
89 | ;; | | 89 | ;; |
90 | *) | | 90 | *) |
91 | warn_cxxpicflags="I could not determine CXXPICFLAGS." | | 91 | warn_cxxpicflags="I could not determine CXXPICFLAGS." |
92 | @@ -1555,8 +1562,10 @@ dnl ;; | | 92 | @@ -1555,8 +1562,10 @@ dnl ;; |
93 | MAJR_VERSION=`echo "${PACKAGE_VERSION}" | sed -e "s/[[\.]][[1-9]]$/.0/"` | | 93 | MAJR_VERSION=`echo "${PACKAGE_VERSION}" | sed -e "s/[[\.]][[1-9]]$/.0/"` |
94 | LIBR_LDFLAGS="-install_name libR.dylib -compatibility_version ${MAJR_VERSION} -current_version ${PACKAGE_VERSION} -headerpad_max_install_names" | | 94 | LIBR_LDFLAGS="-install_name libR.dylib -compatibility_version ${MAJR_VERSION} -current_version ${PACKAGE_VERSION} -headerpad_max_install_names" |
95 | RLAPACK_LDFLAGS="-install_name libRlapack.dylib -compatibility_version ${MAJR_VERSION} -current_version ${PACKAGE_VERSION} -headerpad_max_install_names" | | 95 | RLAPACK_LDFLAGS="-install_name libRlapack.dylib -compatibility_version ${MAJR_VERSION} -current_version ${PACKAGE_VERSION} -headerpad_max_install_names" |
96 | + LIBR_LDFLAGS="-install_name ${PREFIX}/lib/R/lib/libR.dylib -compatibility_version ${MAJR_VERSION} -current_version ${PACKAGE_VERSION} -headerpad_max_install_names" | | 96 | + LIBR_LDFLAGS="-install_name ${PREFIX}/lib/R/lib/libR.dylib -compatibility_version ${MAJR_VERSION} -current_version ${PACKAGE_VERSION} -headerpad_max_install_names" |
97 | + RLAPACK_LDFLAGS="-install_name ${PREFIX}/lib/R/lib/libRlapack.dylib -compatibility_version ${MAJR_VERSION} -current_version ${PACKAGE_VERSION} -headerpad_max_install_names" | | 97 | + RLAPACK_LDFLAGS="-install_name ${PREFIX}/lib/R/lib/libRlapack.dylib -compatibility_version ${MAJR_VERSION} -current_version ${PACKAGE_VERSION} -headerpad_max_install_names" |
98 | ## don't use version in libRblas so we can replace it with any BLAS implementation | | 98 | ## don't use version in libRblas so we can replace it with any BLAS implementation |
99 | - RBLAS_LDFLAGS="-install_name libRblas.dylib -headerpad_max_install_names" | | 99 | - RBLAS_LDFLAGS="-install_name libRblas.dylib -headerpad_max_install_names" |
100 | + RBLAS_LDFLAGS="-install_name ${PREFIX}/lib/R/lib/libRblas.dylib -headerpad_max_install_names" | | 100 | + RBLAS_LDFLAGS="-install_name ${PREFIX}/lib/R/lib/libRblas.dylib -headerpad_max_install_names" |
101 | ;; | | 101 | ;; |