]> iEval git - linux-seccomp.git/commitdiff
Build against bundled libseccomp
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 19 Nov 2016 19:55:54 +0000 (19:55 +0000)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 19 Nov 2016 19:55:54 +0000 (19:55 +0000)
Makefile.PL

index 7b4d612c333186cb15cacf02a08493da0ae26840..c2dca8ed2bf6b9fc05b5d4a8447e277087d48b88 100644 (file)
@@ -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
This page took 0.016547 seconds and 4 git commands to generate.