summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2014-11-12 16:46:48 +1100
committerTony Cook <tony@develop-help.com>2014-11-13 11:41:36 +1100
commit6711cb4f90cfacd285b7fabbb5337493678fc628 (patch)
tree133262cb3e73bd838bbfba4d58d1ac9e4c35f584 /Makefile.SH
parent261d007a5e77381a4a921bbdfc9adbe51c1c2964 (diff)
downloadperl-6711cb4f90cfacd285b7fabbb5337493678fc628.tar.gz
[perl #123163] use the original link order unless on os390
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-xMakefile.SH13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 5f630fa7b3..f3fea9a5e6 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -930,7 +930,20 @@ lib/buildcustomize.pl: $& $(mini_obj) write_buildcustomize.pl
$(PERL_EXE): $& perlmain$(OBJ_EXT) $(LIBPERL) $(static_ext) ext.libs $(PERLEXPORT) write_buildcustomize.pl
-@rm -f miniperl.xok
+!NO!SUBS!
+
+ case $osname in
+ os390) $spitshell >>$Makefile <<'!NO!SUBS!'
$(SHRPENV) $(CC) -o perl $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(LLIBPERL) $(static_ext) `cat ext.libs` $(libs)
+!NO!SUBS!
+ ;;
+ *) $spitshell >>$Makefile <<'!NO!SUBS!'
+ $(SHRPENV) $(CC) -o perl $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs)
+!NO!SUBS!
+ ;;
+ esac
+
+ $spitshell >>$Makefile <<'!NO!SUBS!'
# Microperl. This is just a convenience thing if one happens to
# build also the full Perl and therefore the real big Makefile: