mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
Fix perl swig bindings so that libapparmor can be built when configured
without perl. Thanks to Arkadiusz Miskiewicz <arekm at maven.pl>.
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
EXTRA_DIST =Makefile.PL libapparmor_wrap.c LibAppArmor.pm examples/*.pl
|
EXTRA_DIST =Makefile.PL libapparmor_wrap.c LibAppArmor.pm examples/*.pl
|
||||||
noinst_DATA =LibAppArmor.so
|
|
||||||
|
|
||||||
if HAVE_PERL
|
if HAVE_PERL
|
||||||
|
noinst_DATA =LibAppArmor.so
|
||||||
|
|
||||||
libapparmor_wrap.c: $(srcdir)/../SWIG/libapparmor.i
|
libapparmor_wrap.c: $(srcdir)/../SWIG/libapparmor.i
|
||||||
$(SWIG) -perl -I$(srcdir)/../../src -module LibAppArmor -o $@ $(srcdir)/../SWIG/libapparmor.i
|
$(SWIG) -perl -I$(srcdir)/../../src -module LibAppArmor -o $@ $(srcdir)/../SWIG/libapparmor.i
|
||||||
|
|
||||||
@@ -27,4 +28,4 @@ clean-local:
|
|||||||
#rm -f Makefile.perl Makefile.perl.old
|
#rm -f Makefile.perl Makefile.perl.old
|
||||||
rm -f *.so # *.o
|
rm -f *.so # *.o
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user