mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +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:
parent
8c7fea39d4
commit
b403bbdf82
@ -1,7 +1,8 @@
|
||||
EXTRA_DIST =Makefile.PL libapparmor_wrap.c LibAppArmor.pm examples/*.pl
|
||||
noinst_DATA =LibAppArmor.so
|
||||
|
||||
if HAVE_PERL
|
||||
noinst_DATA =LibAppArmor.so
|
||||
|
||||
libapparmor_wrap.c: $(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 *.so # *.o
|
||||
|
||||
endif
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user