diff options
Diffstat (limited to 'patches/libsemanage-2.1.9/0003-makefile-use-python-config-instead-of-pkg-config.patch')
-rw-r--r-- | patches/libsemanage-2.1.9/0003-makefile-use-python-config-instead-of-pkg-config.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/libsemanage-2.1.9/0003-makefile-use-python-config-instead-of-pkg-config.patch b/patches/libsemanage-2.1.9/0003-makefile-use-python-config-instead-of-pkg-config.patch new file mode 100644 index 000000000..c645195ce --- /dev/null +++ b/patches/libsemanage-2.1.9/0003-makefile-use-python-config-instead-of-pkg-config.patch @@ -0,0 +1,24 @@ +From: Marc Kleine-Budde <mkl@pengutronix.de> +Date: Wed, 13 Feb 2013 23:49:06 +0100 +Subject: [PATCH] makefile: use python-config instead of pkg-config + +...because our python has no pkg-config yet. + +Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> +--- + src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index 690a816..5d0e4b7 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -12,7 +12,7 @@ LIBDIR ?= $(PREFIX)/lib + SHLIBDIR ?= $(PREFIX)/lib + INCLUDEDIR ?= $(PREFIX)/include + PYLIBVER ?= $(shell $(PYTHON) -c 'import sys;print("python%d.%d" % sys.version_info[0:2])') +-PYINC ?= $(shell pkg-config --cflags $(PYPREFIX)) ++PYINC ?= $(shell $(PYTHON)-config --cflags) + PYLIBDIR ?= $(LIBDIR)/$(PYLIBVER) + RUBYLIBVER ?= $(shell $(RUBY) -e 'print RUBY_VERSION.split(".")[0..1].join(".")') + RUBYPLATFORM ?= $(shell $(RUBY) -e 'print RUBY_PLATFORM') |