From 6cdadb5aa5805fffe20e051d971d99180e51c13d Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Mon, 16 Aug 2010 23:12:13 +0200 Subject: Only copy op.c to opmini.c if op.c is a symlink, else use a symlink. Similarly for perl.c to perlmini.c This avoids the work of a file copy if a symlink would do the job, but ensures that we don't create a symlink to a symlink to a file, which (comments suggest) upsets gcc. --- Makefile.SH | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'Makefile.SH') diff --git a/Makefile.SH b/Makefile.SH index e90b51f647..51529f40d4 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -586,18 +586,30 @@ utilities: $(MINIPERL_EXE) $(CONFIGPM) $(plextract) FORCE .PHONY: FORCE FORCE: @sh -c true - -# We do a copy of the op.c instead of a symlink because gcc gets huffy -# if we have a symlink forest to another disk (it complains about too many -# levels of symbolic links, even if we have only two) !NO!SUBS! for file in op perl; do - $spitshell >>$Makefile <>$Makefile <>$Makefile <>$Makefile <