xfs
[Top] [All Lists]

[PATCH 2/5] xfstests: Use libtool to install applications

To: Rich Johnston <rjohnston@xxxxxxx>
Subject: [PATCH 2/5] xfstests: Use libtool to install applications
From: Rich Johnston <rjohnston@xxxxxxx>
Date: Tue, 28 Aug 2012 12:26:07 -0500
Cc: <xfs@xxxxxxxxxxx>
References: <20120828172605.607853317@xxxxxxx>
User-agent: quilt/0.47-15.17.1
This patch replaces the INSTALL macro with LTINSTALL so that libtool is used
to install the applications.  Libtool will install the binary from the proper
location and display a warning if any shared library dependancies are not
properly installed.  This ensures that a libtool wrapper shell script is not
installed in place of application when libtool wrappers are being used.


Signed-off-by: Rich Johnston <rjohnston@xxxxxxx>

---
 ltp/Makefile |    2 +-
 src/Makefile |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

Index: b/ltp/Makefile
===================================================================
--- a/ltp/Makefile
+++ b/ltp/Makefile
@@ -44,7 +44,7 @@ $(TARGETS): $(LIBTEST)
 
 install: default
        $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/ltp
-       $(INSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/ltp
+       $(LTINSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/ltp
        $(INSTALL) -m 755 $(SCRIPTS) $(PKG_LIB_DIR)/ltp
 
 -include .dep
Index: b/src/Makefile
===================================================================
--- a/src/Makefile
+++ b/src/Makefile
@@ -74,9 +74,9 @@ LINKTEST = $(LTLINK) $@.c -o $@ $(CFLAGS
 
 install: default $(addsuffix -install,$(SUBDIRS))
        $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/src
-       $(INSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/src
-       $(INSTALL) -m 755 fill2attr fill2fs fill2fs_check scaleread.sh 
$(PKG_LIB_DIR)/src
-       $(INSTALL) -m 644 dumpfile $(PKG_LIB_DIR)/src
+       $(LTINSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/src
+       $(LTINSTALL) -m 755 fill2attr fill2fs fill2fs_check scaleread.sh 
$(PKG_LIB_DIR)/src
+       $(LTINSTALL) -m 644 dumpfile $(PKG_LIB_DIR)/src
 
 %-install:
        $(MAKE) -C $* install

<Prev in Thread] Current Thread [Next in Thread>