Package: src:r-base
Version: 3.2.2-1
Severity: normal
Tags: patch
Dear Maintainer,
I've noticed that r-cran-bayesm can't be built on ppc64el. It's because
some library paths are missing from the FLIBS variable defined in
/etc/R/Makeconf. The file /etc/R/Makeconf is coming from the package
r-base-core.
The attached patch adds the missing paths to FLIBS, only for ppc64el.
This way the package r-cran-bayesm could be built.
Thanks for considering the patch.
Erwan Prioul.
diff -Naur a/configure b/configure
--- a/configure 2015-08-13 16:47:29.565087740 +0200
+++ b/configure 2015-09-02 14:56:33.701599837 +0200
@@ -26516,6 +26516,13 @@
main_ldflags="-Wl,--export-dynamic"
STATICR1="-Wl,--whole-archive"
STATICR2="-Wl,--no-whole-archive"
+ ## FLIBS needs all the -L options on powerpc64le
+ ## (it enables the build of packages with a dependency on this one)
+ case "${host_cpu}" in
+ powerpc64le)
+ FLIBS_IN_SO="${FLIBS_IN_SO} $CLIBS"
+ ;;
+ esac
;;
mingw*)
SHLIB_EXT=".dll"