perl: Work around recompile failures
authorMarcel Denia <naoir@gmx.net>
Thu, 10 Dec 2015 21:40:21 +0000 (22:40 +0100)
committerMarcel Denia <naoir@gmx.net>
Thu, 10 Dec 2015 21:40:54 +0000 (22:40 +0100)
Apparently, recompiling/relinking fails under some circumstances. This
patch has been reported to work around that issue.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl/patches/310-recompile-hack.patch [new file with mode: 0644]

diff --git a/lang/perl/patches/310-recompile-hack.patch b/lang/perl/patches/310-recompile-hack.patch
new file mode 100644 (file)
index 0000000..05a8e9b
--- /dev/null
@@ -0,0 +1,16 @@
+perl: Work around recompile failures
+
+Apparently, recompiling/relinking fails under some circumstances. This
+patch has been reported to work around that issue.
+
+--- a/Makefile.SH
++++ b/Makefile.SH
+@@ -818,7 +818,7 @@ $(LIBPERL): $& $(obj) $(DYNALOADER) $(LI
+       true)
+               $spitshell >>$Makefile <<'!NO!SUBS!'
+       rm -f $@
+-      $(LD) -o $@ $(SHRPLDFLAGS) $(obj) $(DYNALOADER) $(libs)
++      $(CC) -o $@ $(SHRPLDFLAGS) $(obj) $(DYNALOADER) $(libs)
+ !NO!SUBS!
+               case "$osname" in
+               aix)