X-Git-Url: http://git.ieval.ro/?p=linux-seccomp.git;a=blobdiff_plain;f=Makefile.PL;h=c2dca8ed2bf6b9fc05b5d4a8447e277087d48b88;hp=7b4d612c333186cb15cacf02a08493da0ae26840;hb=f88f5efad030281b1d1f47fa9e87d1236406f945;hpb=8befd5cc4d2b478c697d81a5ac191083c203d081 diff --git a/Makefile.PL b/Makefile.PL index 7b4d612..c2dca8e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -19,6 +19,8 @@ WriteMakefile( }, PREREQ_PM => {}, LIBS => ['-lseccomp'], + MYEXTLIB => 'libseccomp/src/.libs/libseccomp$(LIB_EXT)', + clean => { FILES => 'libseccomp/src/.libs/libseccomp$(LIB_EXT)' }, META_ADD => { dynamic_config => 1, resources => { @@ -27,6 +29,13 @@ WriteMakefile( } ); +sub MY::postamble { +' +$(MYEXTLIB): libseccomp/configure + cd libseccomp && ./configure && `which gmake || echo $(MAKE)` all +' +} + if (eval {require ExtUtils::Constant; 1}) { # If you edit these definitions to change the constants used by this module, # you will need to use the generated const-c.inc and const-xs.inc