Skip to content
Prev 4348 / 12125 Next

[R-pkg-devel] set pkg_config for 3rd party software

On Thu, Sep 5, 2019 at 6:36 PM Martin Maechler
<maechler at stat.math.ethz.ch> wrote:
This looks wrong. I would expect that /usr/lib64 is one of the
standard directories that are searched anyway. So why put it into the
very beginning of the search? BTW, this does not happen on Debian:

$ R CMD config LDFLAGS
-Wl,-z,relro
I see no way to correct this within a package. The only thing that
comes to mind is adding a test in `configure{.ac}` that will fail when
a to old version of libmpfr is actually used for linking. If the test
fails, one can at least give an informative message. Then either an
admin corrects the configuration or the user overwrites LDFLAS in
~/.R/Makevars.

cheerio
ralf