summaryrefslogtreecommitdiffstats
path: root/patches/libsemanage-2.1.9/0003-makefile-use-python-config-instead-of-pkg-config.patch
blob: c645195cef8b156b78285b09634797dd85ab0180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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')