In perl.git, the branch smoke-me/no-LDLIBPTH-for-CC has been updated <http://perl5.git.perl.org/perl.git/commitdiff/e2658a697bfb1264a1861479c37cafa53961a558?hp=642ef7c1b91288be96b948fea0661bf371c74551>
- Log ----------------------------------------------------------------- commit e2658a697bfb1264a1861479c37cafa53961a558 Author: Nicholas Clark <[email protected]> Date: Fri Apr 27 17:56:34 2012 +0200 No need to prefix the $(CC) invocation that links miniperl with $(LDLIBPTH). $(LDLIBPTH) is used to prefix the appropriate LD_LIBRARY_PATH=... before commands in the Makefile when perl is build with a shared perl library so that the uninstalled ./perl will be able to find it. Commit c4f23d77f4b3486a (in May 1998) added the code for LDLIBPTH, but also added it to the default command line used to invoke $(CC) to link miniperl. This command doesn't need to run ./perl, hence the use of $(LDLIBPTH) is superfluous here. Removing it makes the code simpler. ----------------------------------------------------------------------- Summary of changes: Makefile.SH | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.SH b/Makefile.SH index ba5ab79..208702a 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -869,7 +869,7 @@ $(MINIPERL_EXE): $& $(mini_obj) $spitshell >>$Makefile <<'!NO!SUBS!' $(MINIPERL_EXE): $& $(mini_obj) -@rm -f miniperl.xok - $(LDLIBPTH) $(CC) $(CLDFLAGS) -o $(MINIPERL_EXE) \ + $(CC) $(CLDFLAGS) -o $(MINIPERL_EXE) \ $(mini_obj) $(libs) $(LDLIBPTH) $(RUN) ./miniperl$(HOST_EXE_EXT) -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest !NO!SUBS! -- Perl5 Master Repository
