Files
gentoo/dev-lang/perl/files/perl-5.44.0-darwin-install_name.patch
Fabian Groffen eb58ca94be dev-lang/perl-5.44.0: replace prefix seds by patches
Turn long-used seds into patches so we notice when they break (#979798).
Drop Darwin8/9 workarounds, long obsolete.

Thanks to David-John Miller in bug #979798 for pointing out the problem
with the Darwin sed.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2026-07-31 15:12:03 +02:00

20 lines
760 B
Diff

Makefile.SH: record to be installed location in install_name
Instead of using $PWD, which is our build directory, use the to be
installed to location for the install_name on Darwin, soas to make it
point to something valid.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -64,7 +64,7 @@
${revision}.${patchlevel}.${subversion}"
case "$osvers" in
1[5-9]*|[2-9]*)
- shrpldflags="$shrpldflags -install_name `pwd -P`/libperl.${revision}.${patchlevel}.dylib -Xlinker -headerpad_max_install_names"
+ shrpldflags="$shrpldflags -install_name \$(shrpdir)/libperl.${revision}.${patchlevel}.dylib -Xlinker -headerpad_max_install_names"
exeldflags="-Xlinker -headerpad_max_install_names"
;;
*)