On Tue, Apr 26, 2005 at 01:45:52PM +1000, Sisyphus wrote: > use ExtUtils::MakeMaker; > $Verbose = 1; > WriteMakefile( > NAME => 'Mytest2::mylib', > SKIP => [qw(all static static_lib dynamic dynamic_lib)], > clean => {'FILES' => 'libmylib$(LIB_EXT)'}, > ); > > sub MY::top_targets { > ' > all :: static
Did you mean to have that leading space there? > pure_all :: static > > static :: libmylib$(LIB_EXT) > > libmylib$(LIB_EXT): $(O_FILES) > $(AR) cr libmylib$(LIB_EXT) $(O_FILES) > $(RANLIB) libmylib$(LIB_EXT) > > '; > } I don't really understand static builds but in general I would be wary of any documentation older than a year or two (such as perlxstut) recommending you override top_targets() or pretty any other internal function as the particulars have changed. All the SKIPs also make me suspicious. So maybe its a dmake problem but maybe its also out of date docs. Also try defining static before its used as a dependency.