From f88f5efad030281b1d1f47fa9e87d1236406f945 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 19 Nov 2016 19:55:54 +0000 Subject: [PATCH] Build against bundled libseccomp --- Makefile.PL | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.30.2