From: Marius Gavrilescu Date: Sat, 19 Nov 2016 19:55:54 +0000 (+0000) Subject: Build against bundled libseccomp X-Git-Tag: 0.002~7 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=f88f5efad030281b1d1f47fa9e87d1236406f945;p=linux-seccomp.git Build against bundled libseccomp --- 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