aout_obj = $(addsuffix $(AOUT_OBJ_EXT),$(basename $(obj)))
AOUT_DYNALOADER = $(addsuffix $(AOUT_LIB_EXT),$(basename $(DYNALOADER)))
-aout_ext = $(dynamic_ext) $(AOUT_EXTRA_LIBS)
+aout_ext = $(static_ext) $(dynamic_ext) $(AOUT_EXTRA_LIBS)
aout_static_ext = $(addsuffix $(AOUT_LIB_EXT),$(basename $(aout_ext)))
aout_static_lib = $(addsuffix $(LIB_EXT),$(basename $(aout_ext)))
$(AOUT_CCCMD_DLL) $(PLDLFLAGS) -c perlmain.c
# Assume that extensions are at most 4 deep (this is so with 5.8.1)
-aout_extlist: $(aout_static_ext)
+aout_extlist: $(aout_static_ext) $(AOUT_DYNALOADER)
echo lib/auto/*.a lib/auto/*/*.a lib/auto/*/*/*.a lib/auto/*/*/*/*.a | tr ' ' '\n' | grep -v '\*' > $@.tmp
sh mv-if-diff $@.tmp $@