Whamcloud - gitweb
LU-10514 utils: statically link l_getidentity with libcfs.a 72/30872/3
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 16 Jan 2018 00:50:46 +0000 (18:50 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 25 Jan 2018 04:45:39 +0000 (04:45 +0000)
l_getidentity runs in a restricted environment which is not compatible
with the libtool wrapper script so statically link it with libcfs.a.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I4d3455003d48a11bad4570c3ad23de65c95e5b2c
Reviewed-on: https://review.whamcloud.com/30872
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/Makefile.am

index 3cccbf0..145d9b4 100644 (file)
@@ -188,8 +188,8 @@ tunefs_lustre_LDFLAGS  := ${MNTMODLDFLAGS}
 tunefs_lustre_LDADD    := $(mkfs_lustre_LDADD)
 
 l_getidentity_SOURCES = l_getidentity.c
-l_getidentity_LDADD := liblustreapi.la
-l_getidentity_DEPENDENCIES := liblustreapi.la
+l_getidentity_LDADD := $(top_builddir)/libcfs/libcfs/libcfs.la
+l_getidentity_DEPENDENCIES := $(top_builddir)/libcfs/libcfs/libcfs.la
 
 lhsmtool_posix_SOURCES = lhsmtool_posix.c
 lhsmtool_posix_LDADD := liblustreapi.la $(PTHREAD_LIBS)