[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#747881: r-base: Error in linker flag causes rpy2 to FTBFS on GNU/Hurd



Source: r-base
Version: 3.1.0-1
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd

Hi,

rpy2 FTBFS on GNU/Hurd, when compiling the build stops at

"/usr/lib/R/bin/R" CMD config --ldflags
Invalid substring
-export-dynamic
in string
-export-dynamic -fopenmp  -L/usr/lib/R/lib -lR -lpcre -llzma -lbz2 -lz -lrt -ldl -lm

This is caused by an error in a linker flag in the generated file
/etc/R/Makeconf of package r-base. The attached patch fixes this
problem by using the correct linker directive for variable main_ldflags
in configure.ac

Thanks!
--- a/configure.ac	2014-03-13 00:03:32.000000000 +0100
+++ b/configure.ac	2014-05-12 16:25:25.000000000 +0200
@@ -1413,7 +1413,7 @@
     shlib_ldflags="-shared"
     ;;
   gnu*)				# GNU Hurd
-    main_ldflags="-export-dynamic"
+    main_ldflags="-Wl,--export-dynamic"
     ;;
   hpux*)
     SHLIB_EXT=".sl"

Reply to: