Package: pdl / 1:2.017-1

pdl-ldflags.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Use LDFLAGS for pdl executable.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: not-needed

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -583,7 +583,7 @@ EOPS
 # support the `$<` variable in explicit rules
 $text .= <<EOT if $^O !~ /MSWin/;
 pdl$Config::Config{exe_ext} : pdl.c
-	\$(CC) \$(CFLAGS) \$(CPPFLAGS) pdl.c -o \$\@
+	\$(CC) \$(CFLAGS) \$(CPPFLAGS) \$(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get LDFLAGS) pdl.c -o \$\@
 EOT
 
 $text .= << 'EOT' if $^O =~ /MSWin/;