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 <[email protected]>
---
 meta/recipes-support/gdbm/files/ptest.patch | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-support/gdbm/files/ptest.patch 
b/meta/recipes-support/gdbm/files/ptest.patch
index 5f4078101b..96196f63b6 100644
--- a/meta/recipes-support/gdbm/files/ptest.patch
+++ b/meta/recipes-support/gdbm/files/ptest.patch
@@ -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
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#229116): 
https://lists.openembedded.org/g/openembedded-core/message/229116
Mute This Topic: https://lists.openembedded.org/mt/117174302/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to