[dh-r] 18/43: Use dpkg buildflags

Gordon Ball chronitis-guest at moszumanska.debian.org
Thu Sep 15 13:45:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

chronitis-guest pushed a commit to branch master
in repository dh-r.

commit 7a28e507a9591021f9c07d930449220f7061608d
Author: Gordon Ball <gordon at chronitis.net>
Date:   Mon Sep 5 22:41:24 2016 +0200

    Use dpkg buildflags
---
 dh/R.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dh/R.pm b/dh/R.pm
index 256d2d1..ae6fa4a 100644
--- a/dh/R.pm
+++ b/dh/R.pm
@@ -143,6 +143,11 @@ sub install {
     if (defined $ENV{RMakeFlags}) {
         say "I: Using MAKEFLAGS=" . $ENV{RMakeFlags};
         push (@instargs, "MAKEFLAGS=" . $ENV{RMakeFlags});
+    } else {
+        my $ldflags = qx/dpkg-buildflags --get LDFLAGS/;
+        $ldflags =~ s/ /\\ /g;
+        $ENV{MAKEFLAGS} = "'LDFLAGS=$ldflags'";
+        say "I: Using MAKEFLAGS=$ENV{MAKEFLAGS}";
     }
 
     push (@instargs, "R", "CMD", "INSTALL", "-l", "$destdir/$libdir", "--clean");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/dh-r.git



More information about the debian-science-commits mailing list