From f65efd963e52de51d35e2e03fb773f33dd64f565 Mon Sep 17 00:00:00 2001
From: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Tue, 20 Feb 2024 12:19:06 +0000
Subject: [PATCH] python-lttngust/Makefile.am: Add --install-lib to setup.py

Otherwise it may install to /usr/lib, but should be /usr/lib64 when cross
building.

Upstream-Status: Submitted [https://github.com/lttng/lttng-ust/pull/59]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>

---
 src/python-lttngust/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/python-lttngust/Makefile.am b/src/python-lttngust/Makefile.am
index d53e21d..283901e 100644
--- a/src/python-lttngust/Makefile.am
+++ b/src/python-lttngust/Makefile.am
@@ -45,7 +45,7 @@ install-exec-local: build-python-bindings.stamp
 	if [ "$(DESTDIR)" != "" ]; then \
 		opts="$$opts --root=$(DESTDIR)"; \
 	fi; \
-	$(PYTHON) $(builddir)/setup.py install $(PY_INSTALL_OPTS) $$opts;
+	$(PYTHON) $(builddir)/setup.py install $(PY_INSTALL_OPTS) $$opts --install-lib=$(pythondir);
 
 clean-local:
 	rm -rf $(builddir)/build
