34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From 0271bf4136e3a2bb476919eb9e984418ab95cb75 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
Date: Fri, 25 Oct 2019 15:41:49 +0200
|
|
Subject: [PATCH] libselinux/src/Makefile: don't pass bogus -I and -L to python
|
|
setup.py build_ext
|
|
|
|
Using $(DESTDIR) during the build does not follow the normal/standard
|
|
semantic of DESTDIR: it is normally only needed during the
|
|
installation. Therefore, a lot of build systems/environments don't
|
|
pass any DESTDIR at build time, which causes setup.py to be called
|
|
with -I /usr/include -L /usr/lib, which breaks cross-compilation.
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
---
|
|
libselinux/src/Makefile | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile
|
|
index 2b1696a0c17b..3b8bad810de0 100644
|
|
--- a/libselinux/src/Makefile
|
|
+++ b/libselinux/src/Makefile
|
|
@@ -130,7 +130,7 @@ SWIGRUBY = swig -Wall -ruby -o $(SWIGRUBYCOUT) -outdir ./ $(DISABLE_FLAGS)
|
|
all: $(LIBA) $(LIBSO) $(LIBPC)
|
|
|
|
pywrap: all selinuxswig_python_exception.i
|
|
- CFLAGS="$(CFLAGS) $(SWIG_CFLAGS)" $(PYTHON) setup.py build_ext -I $(DESTDIR)$(INCLUDEDIR) -L $(DESTDIR)$(LIBDIR)
|
|
+ CFLAGS="$(CFLAGS) $(SWIG_CFLAGS)" $(PYTHON) setup.py build_ext
|
|
|
|
rubywrap: all $(SWIGRUBYSO)
|
|
|
|
--
|
|
2.23.0
|
|
|