blob: 7d5c079b2d01ed7c38d2ac72b60dd434487250f9 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 2f74a899474f428a4a5368a94accf801c5f97ae4 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 4 Jun 2018 18:33:50 +0300
4Subject: [PATCH] ExtUtils-MakeMaker: add $(LDFLAGS) when linking binary
5 modules
6
7Upstream-Status: Pending
8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9
10---
11 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
15index fe53be1..249c048 100644
16--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
17+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
18@@ -1050,7 +1050,7 @@ sub xs_make_dynamic_lib {
19 }
20
21 push @m, sprintf <<'MAKE', $ld_run_path_shell, $ldrun, $dlsyms_arg, $ldfrom, $self->xs_obj_opt('$@'), $libs, $exportlist;
22- %s$(LD) %s $(LDDLFLAGS) %s %s $(OTHERLDFLAGS) %s $(MYEXTLIB) \
23+ %s$(LD) %s $(LDDLFLAGS) %s %s $(LDFLAGS) $(OTHERLDFLAGS) %s $(MYEXTLIB) \
24 $(PERL_ARCHIVE) %s $(PERL_ARCHIVE_AFTER) %s \
25 $(INST_DYNAMIC_FIX)
26 $(CHMOD) $(PERM_RWX) $@