01a82c1401
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> [yann.morin.1998@free.fr: split off into its own patch] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Tested-by: Angelo Compagnucci <angelo@amarulasolutions.com>
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From cf61d1257b9a5f12fdf6f4dd6a2746f77b23a8a0 Mon Sep 17 00:00:00 2001
|
|
From: Angelo Compagnucci <angelo@amarulasolutions.com>
|
|
Date: Tue, 24 Mar 2020 23:02:08 +0100
|
|
Subject: [PATCH] libapparmor: fixing setup.py call when crosscompiling
|
|
|
|
When crosscompiling, setupy.py should be called passing the settings
|
|
discovered by ac_python_devel.m4 and not using the default system
|
|
settings.
|
|
|
|
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
|
|
---
|
|
libraries/libapparmor/swig/python/Makefile.am | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libraries/libapparmor/swig/python/Makefile.am b/libraries/libapparmor/swig/python/Makefile.am
|
|
index 421acba9..6c60181e 100644
|
|
--- a/libraries/libapparmor/swig/python/Makefile.am
|
|
+++ b/libraries/libapparmor/swig/python/Makefile.am
|
|
@@ -11,7 +11,7 @@ MOSTLYCLEANFILES=libapparmor_wrap.c LibAppArmor.py
|
|
|
|
all-local: libapparmor_wrap.c setup.py
|
|
if test ! -f libapparmor_wrap.c; then cp $(srcdir)/libapparmor_wrap.c . ; fi
|
|
- $(PYTHON) setup.py build
|
|
+ CC="$(CC)" CFLAGS="$(PYTHON_CPPFLAGS)" LDSHARED="$(CC) -shared" LDFLAGS="$(PYTHON_LDFLAGS)" $(PYTHON) setup.py build
|
|
|
|
install-exec-local:
|
|
$(PYTHON) setup.py install --root="/$(DESTDIR)" --prefix="$(prefix)"
|
|
--
|
|
2.17.1
|
|
|