1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$NetBSD: patch-aa,v 1.17 2007/03/14 11:50:35 markd Exp $
--- configure.ac.orig 2006-12-04 10:37:52.000000000 +1300
+++ configure.ac
@@ -255,7 +255,7 @@ AC_ARG_ENABLE([BLAS-shlib],
[use_blas_shlib="unset"])
if test "${want_R_shlib}" = yes; then
- LIBR="-L\$(R_HOME)/lib\$(R_ARCH) -lR"
+ LIBR="-Wl,-R${prefix}/lib/R/lib\$(R_ARCH) -L\$(R_HOME)/lib\$(R_ARCH) -lR"
else
LIBR=
fi
@@ -653,9 +653,9 @@ if test "${use_readline}" = yes; then
if test "${use_readline}" = no; then
## only need ncurses if libreadline is not statically linked against it
unset ac_cv_lib_readline_rl_callback_read_char
- AC_CHECK_LIB(ncurses, main, [],
- AC_CHECK_LIB(termcap, main, [],
- AC_CHECK_LIB(termlib, main)))
+ AC_CHECK_LIB(termcap, main, [],
+ AC_CHECK_LIB(termlib, main, [],
+ AC_CHECK_LIB(ncurses, main)))
AC_CHECK_LIB(readline, rl_callback_read_char)
use_readline="${ac_cv_lib_readline_rl_callback_read_char}"
fi
@@ -798,13 +798,6 @@ case "${host_cpu}" in
R_PROG_CC_FLAG([-ieee_with_inexact],
R_SH_VAR_ADD(R_XTRA_CFLAGS, [-ieee_with_inexact]))
fi
- if test "${G77}" = yes; then
- R_PROG_F77_FLAG([-mieee],
- R_SH_VAR_ADD(R_XTRA_FFLAGS, [-mieee]))
- else
- R_PROG_F77_FLAG([-fpe3],
- R_SH_VAR_ADD(R_XTRA_FFLAGS, [-fpe3]))
- fi
if test "${GXX}" = yes; then
R_PROG_CXX_FLAG([-mieee],
R_SH_VAR_ADD(R_XTRA_CXXFLAGS, [-mieee]))
@@ -1327,6 +1320,7 @@ rm -f libconftest${DYLIB_EXT} conftest.c
fpicflags=
;;
netbsd*)
+ fpicflags="-fPIC"
if ${CPP} - -dM < /dev/null | grep __ELF__ >/dev/null ; then
main_ldflags="-export-dynamic"
shlib_ldflags="-shared"
|