[libgpiod][PATCH 2/2] bindings: python: use absolute paths for python test builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change the paths used to build test C extensions in place to their abs
counterparts. Avoids issues locating files if the build behaviour changes.

Signed-off-by: Phil Howard <phil@xxxxxxxxxxxxx>
---
 bindings/python/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index b2f2779..95edfff 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -14,8 +14,8 @@ endif
 all-local:
 	GPIOD_WITH_TESTS=$(BUILD_TESTS) \
 	$(PYTHON) setup.py build_ext --inplace \
-		--include-dirs=$(top_srcdir)/include/:$(top_srcdir)/tests/gpiosim/ \
-		--library-dirs=$(top_builddir)/lib/.libs/:$(top_builddir)/tests/gpiosim/.libs/
+		--include-dirs=$(abs_top_srcdir)/include/:$(abs_top_srcdir)/tests/gpiosim/ \
+		--library-dirs=$(abs_top_builddir)/lib/.libs/:$(abs_top_builddir)/tests/gpiosim/.libs/
 
 install-exec-local:
 	GPIOD_WITH_TESTS= \
-- 
2.34.1




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux