From: Vadim Konovalov Date: Mon, 13 Jun 2005 15:41:41 +0000 (-0400) Subject: Re: Change 24806: improve static build for win32/Makefile X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9e7cf449d83cd5f918126cacc6de91f23f4d9822;p=p5sagit%2Fp5-mst-13.2.git Re: Change 24806: improve static build for win32/Makefile Message-Id: <1118691701.6333.32.camel@mdk10> p4raw-id: //depot/perl@24825 --- diff --git a/win32/Makefile b/win32/Makefile index 8ba95a5..33ddc80 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -696,7 +696,8 @@ SETARGV_OBJ = setargv$(o) !ENDIF # specify static extensions here -STATIC_EXT = Cwd Compress/Zlib +#STATIC_EXT = Cwd Compress/Zlib +STATIC_EXT = DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader SOCKET = $(EXTDIR)\Socket\Socket @@ -957,8 +958,7 @@ perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl CCTYPE=$(CCTYPE) > perldll.def $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static - $(MINIPERL) -I..\lib buildext.pl --list-static-libs > stat-exts.tmp - $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @stat-exts.tmp @<< + $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @Extensions_static @<< $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES) << $(XCOPY) $(PERLIMPLIB) $(COREDIR) @@ -1030,8 +1030,9 @@ Extensions: buildext.pl $(PERLDEP) $(CONFIGPM) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext --dynamic Extensions_static : buildext.pl - $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext --static $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) --static + $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext --static + $(MINIPERL) -I..\lib buildext.pl --list-static-libs > Extensions_static Extensions_clean: -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) clean @@ -1110,7 +1111,6 @@ distclean: realclean -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \ $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD) -del /f *.def *.map - -del /f stat-exts.tmp -del /f $(EXTENSION_DLL) -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm -del /f $(EXTDIR)\DynaLoader\dl_win32.xs @@ -1274,6 +1274,7 @@ _clean : -@$(DEL) ..\x2p\*.exe ..\x2p\*.bat -@$(DEL) *.ilk -@$(DEL) *.pdb + -@$(DEL) Extensions_static clean : Extensions_clean _clean diff --git a/win32/makefile.mk b/win32/makefile.mk index 5aa8efb..66ebf55 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -1095,7 +1095,7 @@ $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static $(LIBFILES) perl.exp $(LKPOST)) .ELSE $(LINK32) -dll -def:perldll.def -out:$@ \ - $(shell $(MINIPERL) -I..\lib buildext.pl --list-static-libs) \ + @Extensions_static \ @$(mktmp -base:0x28000000 $(BLINK_FLAGS) $(DELAYLOAD) $(LIBFILES) \ $(PERLDLL_RES) $(PERLDLL_OBJ:s,\,$B,)) .ENDIF @@ -1181,8 +1181,9 @@ Extensions : buildext.pl $(PERLDEP) $(CONFIGPM) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext --dynamic Extensions_static : buildext.pl - $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext --static $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) --static + $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext --static + $(MINIPERL) -I..\lib buildext.pl --list-static-libs > Extensions_static Extensions_clean : -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) clean @@ -1426,6 +1427,7 @@ _clean : -@erase ..\x2p\*.exe ..\x2p\*.bat -@erase *.ilk -@erase *.pdb + -@erase Extensions_static clean : Extensions_clean _clean