On Sun, 24 Mar 2002, Kurt Hornik wrote:
> Two issues re R on AIX that came up in recent email exchange with Dan
> Million <lio@hpss1.ccs.ornl.gov>:
>
> * We currently use the Autoconf AC_AIX macro which essentially
'defines'
> _ALL_SOURCE on AIX.
>
> ... I am wondering if we need the macro
> at all. Does anyone know?
I don't think you do (at least in AIX 4.2 and later). Any code that
includes stdio.h or just about anything else is going to end up defining
_ALL_SOURCE via system headers, unless _XOPEN_SOURCE or _POSIX_SOURCE
are defined.
> * Dan also pointed me to 'run-time linking' vs the usual AIX style
> linking. Using run-time linking one could simply do
>
> MAIN_LDFLAGS=-brtl
> SHLIB_LDFLAGS="-G"
>
> instead of the complicated import/export handling with AIX linking,
> and apparently also no longer need an export file?
>
> Dan says that run-time linking is available in AIX 4.2 or better, does
> anyone know more about this? Should it perhaps be made the default if
> available?
>
> Note that I have no access to AIX, hence need help ...
If you use gcc, you still need the -Wl prefix to these options; e.g.:
MAIN_LDFLAGS=-Wl,-brtl
SHLIB_LDFLAGS=-Wl,-G
I did still use the exports file when I did the build.
As to when runtime linking is needed and when it isn't, I have no
definitive answers. All I know is that everything worked when I used
runtime linking, and it did not work when I didn't.
Dan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To:
r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._