2020-07-14 16:13:39 +02:00
|
|
|
Index: libselinux-3.1/src/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- libselinux-3.1.orig/src/Makefile
|
|
|
|
+++ libselinux-3.1/src/Makefile
|
2019-11-11 08:03:37 +01:00
|
|
|
@@ -13,7 +13,11 @@ LIBDIR ?= $(PREFIX)/lib
|
|
|
|
SHLIBDIR ?= /lib
|
|
|
|
INCLUDEDIR ?= $(PREFIX)/include
|
|
|
|
PYINC ?= $(shell $(PKG_CONFIG) --cflags $(PYPREFIX))
|
|
|
|
+ifeq ($(shell $(PKG_CONFIG) --exists $(PYPREFIX)-embed && echo true), true)
|
|
|
|
+PYLIBS ?= $(shell $(PKG_CONFIG) --libs $(PYPREFIX)-embed)
|
|
|
|
+else
|
|
|
|
PYLIBS ?= $(shell $(PKG_CONFIG) --libs $(PYPREFIX))
|
|
|
|
+endif
|
|
|
|
PYTHONLIBDIR ?= $(shell $(PYTHON) -c "from distutils.sysconfig import *; print(get_python_lib(plat_specific=1, prefix='$(PREFIX)'))")
|
2020-07-14 16:13:39 +02:00
|
|
|
PYCEXT ?= $(shell $(PYTHON) -c 'import importlib.machinery;print(importlib.machinery.EXTENSION_SUFFIXES[0])')
|
2019-11-11 08:03:37 +01:00
|
|
|
RUBYINC ?= $(shell $(RUBY) -e 'puts "-I" + RbConfig::CONFIG["rubyarchhdrdir"] + " -I" + RbConfig::CONFIG["rubyhdrdir"]')
|