2bc75a4367
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=146
17 lines
904 B
Diff
17 lines
904 B
Diff
Index: libselinux-3.5/src/Makefile
|
|
===================================================================
|
|
--- libselinux-3.5.orig/src/Makefile
|
|
+++ libselinux-3.5/src/Makefile
|
|
@@ -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 "import sysconfig; print(sysconfig.get_path('platlib', vars={'platbase': '$(PREFIX)', 'base': '$(PREFIX)'}))")
|
|
PYCEXT ?= $(shell $(PYTHON) -c 'import importlib.machinery;print(importlib.machinery.EXTENSION_SUFFIXES[0])')
|
|
RUBYINC ?= $(shell $(RUBY) -e 'puts "-I" + RbConfig::CONFIG["rubyarchhdrdir"] + " -I" + RbConfig::CONFIG["rubyhdrdir"]')
|