debian packaging: fix hirsute python library detection

This commit is contained in:
Juergen E. Fischer 2021-04-13 14:22:52 +02:00
parent 48caf7178a
commit 9cf1edfb1d

2
debian/rules vendored
View File

@ -76,7 +76,7 @@ endif
ifeq (,$(findstring $(DISTRIBUTION),"focal groovy hirsute sid"))
PYTHON_LIBRARY=$(shell python3-config --ldflags | sed -e 's,-L\(.*\) -L/usr/lib -l\([^ ]*\) .*$$,\1/lib\2.so,')
else
PYTHON_LIBRARY=$(shell python3-config --ldflags --embed | sed -e 's,-L\(.*\) -L/usr/lib -l\([^ ]*\) .*$$,\1/lib\2.so,')
PYTHON_LIBRARY=$(shell python3-config --ldflags --embed | sed -e 's,-L\(.*\) -L[^ ]* -l\([^ ]*\) .*$$,\1/lib\2.so,')
endif
CMAKE_OPTS := \