From 619c007933a923e9b7591540579417a789c26c31 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Thu, 30 Sep 2021 07:43:47 +0000 Subject: For AIX, modify the perl.exp path in ccdlflags earlier in Makefile.SH The config.sh value for ccdlflags includes the path to the *installed* copy of the file perl.exp While building, that file doesn't exist (or worse, is incompatible) so in the Makefile we need CCDLFLAGS to point to the local copy. Previously the Makefile had CCDLFLAGS first set to the value with the installed path, and then set it again to the local path "for building Perl itself". However, the Makefile is *only* used for building Perl itself (not installed extensions), hence we never need the first value. Hence move the sed logic for the change earlier, write out the first declaration of CCDLFLAGS with the "local" value, and eliminate the second declaration. The sed logic was added in July 1999 by commit 5f9d9a1727238445: AIX magic: ccdlflags needs to be different for Perl itself and for extra-core extensions (as used by ExtUtilss::embed::ldopts). Based on the problems described in To: perl5-porters@perl.org Subject: [ID 19990722.002] Perl 5.00503 and AIX 4.1.5; perl.exp; build errors. Also Imagemagick... Reply-To: m.w.ellwood@rl.ac.uk Message-Id: It probably should have always been done the way this commit now does it. --- Makefile.SH | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Makefile.SH') diff --git a/Makefile.SH b/Makefile.SH index a869c9891d..dc59797d35 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -175,6 +175,16 @@ EOT ;; esac +# ccdlflags, not to be confused with cccdlflags: +case "${osname}" in +aix) + # In AIX we need to change this for building Perl itself from + # the config.sh definition (which is for building external + # extensions *after* Perl has been built and installed) + ccdlflags=`echo $ccdlflags|sed -e 's@-bE:.*/perl\.exp@-bE:perl.exp@'` + ;; +esac + : is Cwd static or dynamic static_cwd='define' list_util_dep='$(PERL_EXE)' @@ -816,13 +826,6 @@ esac case "$osname" in aix) - $spitshell >>$Makefile <>$Makefile <<'!NO!SUBS!' -- cgit v1.2.1