]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
gdbm: use libtool to install test binaries
authorRoss Burton <ross.burton@arm.com>
Fri, 9 Jan 2026 13:11:30 +0000 (13:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Jan 2026 10:16:17 +0000 (10:16 +0000)
If libtool builds a binary it's best to use libtool to install it, as
otherwise you might install a wrapper script or need to make assumptions
about where libtool has put the real binary (as this isn't always .libs)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/gdbm/files/ptest.patch

index 5f4078101b02446e44408c7c0b86eb7932879ece..96196f63b60e325e8902ac674e41b7e5e5d937fc 100644 (file)
@@ -28,7 +28,7 @@ diff --git a/tests/Makefile.am b/tests/Makefile.am
 index eb071ac..9d14fe8 100644
 --- a/tests/Makefile.am
 +++ b/tests/Makefile.am
-@@ -150,3 +150,15 @@
+@@ -150,3 +150,11 @@
  t_wordwrap_LDADD = ../tools/libgdbmapp.a @LTLIBINTL@
  
  SUBDIRS = dejagnu
@@ -38,9 +38,5 @@ index eb071ac..9d14fe8 100644
 +install-ptest: $(check_PROGRAMS) $(TESTSUITE)
 +      @$(INSTALL) -d $(DESTDIR)
 +      @for file in $^; do \
-+              if [ -x .libs/$$file ]; then \
-+                      $(INSTALL_PROGRAM) .libs/$$file $(DESTDIR)/$$file; \
-+              else \
-+                      $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \
-+              fi \
++                      $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \
 +      done