This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Simplify win32/makefile.mk for static extensions with GCC
[perl5.git] / win32 / makefile.mk
index 417d480..430913e 100644 (file)
@@ -1094,7 +1094,7 @@ $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
 .ELIF "$(CCTYPE)" == "GCC"
        $(LINK32) -mdll -o $@ -Wl,--base-file -Wl,perl.base $(BLINK_FLAGS) \
            $(mktmp $(LKPRE) $(PERLDLL_OBJ:s,\,$B,) \
-               $(shell $(MINIPERL) -I..\lib buildext.pl --list-static-libs) \
+               $(shell @type Extensions_static) \
                $(LIBFILES) $(LKPOST))
        dlltool --output-lib $(PERLIMPLIB) \
                --dllname $(PERLDLL:b).dll \
@@ -1103,7 +1103,7 @@ $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
                --output-exp perl.exp
        $(LINK32) -mdll -o $@ $(BLINK_FLAGS) \
            $(mktmp $(LKPRE) $(PERLDLL_OBJ:s,\,$B,) \
-               $(shell $(MINIPERL) -I..\lib buildext.pl --list-static-libs) \
+               $(shell @type Extensions_static) \
                $(LIBFILES) perl.exp $(LKPOST))
 .ELSE
        $(LINK32) -dll -def:perldll.def -out:$@ \