diff options
| -rw-r--r-- | meta/recipes-devtools/perl/files/0001-ExtUtils-MakeMaker-add-LDFLAGS-when-linking-binary-m.patch | 26 | ||||
| -rw-r--r-- | meta/recipes-devtools/perl/perl_5.34.0.bb | 4 |
2 files changed, 3 insertions, 27 deletions
diff --git a/meta/recipes-devtools/perl/files/0001-ExtUtils-MakeMaker-add-LDFLAGS-when-linking-binary-m.patch b/meta/recipes-devtools/perl/files/0001-ExtUtils-MakeMaker-add-LDFLAGS-when-linking-binary-m.patch deleted file mode 100644 index 1acf3ddfaa..0000000000 --- a/meta/recipes-devtools/perl/files/0001-ExtUtils-MakeMaker-add-LDFLAGS-when-linking-binary-m.patch +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | From 2f74a899474f428a4a5368a94accf801c5f97ae4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Mon, 4 Jun 2018 18:33:50 +0300 | ||
| 4 | Subject: [PATCH] ExtUtils-MakeMaker: add $(LDFLAGS) when linking binary | ||
| 5 | modules | ||
| 6 | |||
| 7 | Upstream-Status: Submitted [https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/pull/405] | ||
| 8 | Signed-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 | |||
| 14 | diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | ||
| 15 | index 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) $@ | ||
diff --git a/meta/recipes-devtools/perl/perl_5.34.0.bb b/meta/recipes-devtools/perl/perl_5.34.0.bb index 16d45ccff3..a6ae80f07e 100644 --- a/meta/recipes-devtools/perl/perl_5.34.0.bb +++ b/meta/recipes-devtools/perl/perl_5.34.0.bb | |||
| @@ -10,7 +10,6 @@ LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \ | |||
| 10 | 10 | ||
| 11 | SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \ | 11 | SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \ |
| 12 | file://perl-rdepends.txt \ | 12 | file://perl-rdepends.txt \ |
| 13 | file://0001-ExtUtils-MakeMaker-add-LDFLAGS-when-linking-binary-m.patch \ | ||
| 14 | file://0001-Somehow-this-module-breaks-through-the-perl-wrapper-.patch \ | 13 | file://0001-Somehow-this-module-breaks-through-the-perl-wrapper-.patch \ |
| 15 | file://errno_ver.diff \ | 14 | file://errno_ver.diff \ |
| 16 | file://native-perlinc.patch \ | 15 | file://native-perlinc.patch \ |
| @@ -59,6 +58,7 @@ do_configure:class-target() { | |||
| 59 | -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \ | 58 | -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \ |
| 60 | -Dlibpth='${libdir} ${base_libdir}' \ | 59 | -Dlibpth='${libdir} ${base_libdir}' \ |
| 61 | -Dglibpth='${libdir} ${base_libdir}' \ | 60 | -Dglibpth='${libdir} ${base_libdir}' \ |
| 61 | -Alddlflags=' ${LDFLAGS}' \ | ||
| 62 | ${PACKAGECONFIG_CONFARGS} | 62 | ${PACKAGECONFIG_CONFARGS} |
| 63 | 63 | ||
| 64 | #perl.c uses an ARCHLIB_EXP define to generate compile-time code that | 64 | #perl.c uses an ARCHLIB_EXP define to generate compile-time code that |
| @@ -83,6 +83,7 @@ do_configure:class-nativesdk() { | |||
| 83 | -Dsoname=libperl.so.5 \ | 83 | -Dsoname=libperl.so.5 \ |
| 84 | -Dvendorprefix=${prefix} \ | 84 | -Dvendorprefix=${prefix} \ |
| 85 | -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \ | 85 | -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \ |
| 86 | -Alddlflags=' ${LDFLAGS}' \ | ||
| 86 | ${PACKAGECONFIG_CONFARGS} | 87 | ${PACKAGECONFIG_CONFARGS} |
| 87 | 88 | ||
| 88 | # See the comment above | 89 | # See the comment above |
| @@ -96,6 +97,7 @@ do_configure:class-native() { | |||
| 96 | -Dsoname=libperl.so.5 \ | 97 | -Dsoname=libperl.so.5 \ |
| 97 | -Dvendorprefix=${prefix} \ | 98 | -Dvendorprefix=${prefix} \ |
| 98 | -Ui_xlocale \ | 99 | -Ui_xlocale \ |
| 100 | -Alddlflags=' ${LDFLAGS}' \ | ||
| 99 | ${PACKAGECONFIG_CONFARGS} | 101 | ${PACKAGECONFIG_CONFARGS} |
| 100 | } | 102 | } |
| 101 | 103 | ||
