perl: Provide library location when running the testsuite

Message ID 20191121145151.26733-1-stefan.schantl@ipfire.org
State Accepted
Headers
Series perl: Provide library location when running the testsuite |

Commit Message

Stefan Schantl Nov. 21, 2019, 2:51 p.m. UTC
  Otherwise the perl testsuite could not locate libloc and will fail.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/Makefile.am b/Makefile.am
index f2c0eb0..989d01e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -196,7 +196,7 @@  build-perl:
 
 .PHONY: check-perl
 check-perl: testdata.db
-	cd $(builddir)/src/perl && $(MAKE) test database="../../$<"
+	cd $(builddir)/src/perl && $(MAKE) LD_LIBRARY_PATH="$(abs_builddir)/src/.libs" test database="../../$<"
 
 .PHONY: install-perl
 install-perl: