From 4dba441c2a7f79d1fdb7b766ce039690701b2c5c Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 12 Feb 2018 14:45:34 +0100 Subject: gnu: hdf5: Build with -fPIC. * gnu/packages/maths.scm (hdf5)[arguments]: Add -fPIC to CFLAGS and CXXFLAGS. --- gnu/packages/maths.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 3830393706..d564de4245 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5,7 +5,7 @@ ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Eric Bavier ;;; Copyright © 2014 Federico Beffa ;;; Copyright © 2014 Mathieu Lirzin -;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus +;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus ;;; Copyright © 2015 Sou Bunnbu ;;; Copyright © 2015 Mark H Weaver ;;; Copyright © 2015, 2016, 2017 Efraim Flashner @@ -704,7 +704,9 @@ incompatible with HDF5.") #:configure-flags '("--enable-cxx" "--enable-fortran" "--enable-fortran2003") - + ;; Use -fPIC to allow the R bindings to link with the static libraries + #:make-flags (list "CFLAGS=-fPIC" + "CXXFLAGS=-fPIC") #:phases (modify-phases %standard-phases (add-before 'configure 'patch-configure -- cgit 1.4.1