X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.SH;h=76aa4d14d4917ae9f04b5bd9f3a9acbefce14853;hb=f4fee1ae61e02e37337727b540a7d3ca4e7b7d0e;hp=bba2e1bf6034bbaa9d81ac4f4e9d3d632243f636;hpb=687d3573c7533b89705e64f529b53c631cb9dec0;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Makefile.SH b/Makefile.SH index bba2e1b..76aa4d1 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -80,6 +80,9 @@ true) linklibperl="-L. -lperl" shrpldflags="$shrpldflags -Wl,--image-base,0x57000000" ;; + linux*) + shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib" + ;; aix*) shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp" case "$osvers" in @@ -817,7 +820,7 @@ preplibrary: miniperl$(EXE_EXT) $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL) .PHONY: makeppport makeppport: miniperl$(EXE_EXT) $(CONFIGPM) - $(LDLIBPTH) ./miniperl -Ilib mkppport + $(LDLIBPTH) ./miniperl$(EXE_EXT) -Ilib mkppport lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm @@ -896,7 +899,7 @@ INSTALL_DEPENDENCE = all install.perl: $(INSTALL_DEPENDENCE) installperl $(LDLIBPTH) ./perl installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS) - $(MAKE) extras.install + -@test ! -s extras.lst || $(MAKE) extras.install install.man: all installman $(LDLIBPTH) ./perl installman --destdir=$(DESTDIR) $(INSTALLFLAGS) @@ -1077,7 +1080,7 @@ _cleaner1: -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) $(nonxs_ext) ; do \ $(LDLIBPTH) sh ext/util/make_ext $(CLEAN) $$x MAKE=$(MAKE) ; \ done - $(LDLIBPTH) ./miniperl -Ilib mkppport --clean + -@test ! -f ./miniperl$(EXE_EXT) || $(LDLIBPTH) ./miniperl$(EXE_EXT) -Ilib mkppport --clean # Some systems do not support "?", so keep these files separate. _cleaner2: @@ -1094,7 +1097,7 @@ _cleaner2: rm -f h2ph.man pstruct rm -rf .config rm -f preload - rm -rf lib/Encode lib/Compress lib/Hash + rm -rf lib/Encode lib/Compress lib/Hash lib/re rm -rf lib/IO/Compress lib/IO/Uncompress rm -f lib/ExtUtils/ParseXS/t/XSTest.c rm -f lib/ExtUtils/ParseXS/t/XSTest$(OBJ_EXT) @@ -1175,10 +1178,10 @@ _test_notty: cd t && $(PERL_DEBUG) PERL_SKIP_TTY_TEST=1 $(LDLIBPTH) $(PERL) $(TESTFILE) $(TEST_ARGS) unpack_files: - $(LDLIBPTH) ./miniperl$(EXE_EXT) -Ilib packed_files.pl -u + $(LDLIBPTH) ./miniperl$(EXE_EXT) -Ilib uupacktool.pl -u -m cleanup_unpacked_files: - $(LDLIBPTH) ./miniperl$(EXE_EXT) -Ilib packed_files.pl -c + -@test ! -f ./miniperl$(EXE_EXT) || $(LDLIBPTH) ./miniperl$(EXE_EXT) -Ilib uupacktool.pl -c # The second branch is for testing without a tty or controlling terminal, # see t/op/stat.t