libselinux/libselinux-rhat.patch

12 lines
462 B
Diff
Raw Normal View History

--- libselinux-1.29.7/src/Makefile~ 2006-01-20 10:37:52.000000000 -0500
+++ libselinux-1.29.7/src/Makefile 2006-03-16 17:22:52.000000000 -0500
@@ -3,7 +3,7 @@
LIBDIR ?= $(PREFIX)/lib
SHLIBDIR ?= $(DESTDIR)/lib
INCLUDEDIR ?= $(PREFIX)/include
-PYLIBVER ?= python2.4
+PYLIBVER ?= $(shell python -c 'import sys;print "python%d.%d" % sys.version_info[0:2]')
PYINC ?= /usr/include/$(PYLIBVER)
PYLIB ?= /usr/lib/$(PYLIBVER)
PYTHONLIBDIR ?= $(LIBDIR)/$(PYLIBVER)