Whamcloud - gitweb
b=20355 Add $(PTHREAD_LIBS) to lctl and lfs build
authorCliff White <cliff.white@sun.com>
Wed, 3 Feb 2010 19:41:54 +0000 (11:41 -0800)
committerJohann Lombardi <johann@sun.com>
Fri, 12 Feb 2010 21:25:06 +0000 (22:25 +0100)
i=johann

$(PTHREAD_LIBS) is needed to compile lctl and lfs for BG/P

lustre/utils/Makefile.am

index 854a7a9..4fa490a 100644 (file)
@@ -6,7 +6,7 @@ AM_LDFLAGS := -L$(top_builddir)/lnet/utils
 
 LIBPTLCTL := $(top_builddir)/lnet/utils/libptlctl.a
 
-sbin_scripts = lrun 
+sbin_scripts = lrun
 bin_scripts = llstat llobdstat plot-llstat
 
 if UTILS
@@ -28,12 +28,12 @@ endif # UTILS
 lib_LIBRARIES = liblustreapi.a
 
 lctl_SOURCES = parser.c obd.c lustre_cfg.c lctl.c parser.h obdctl.h platform.h
-lctl_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL)
+lctl_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS)
 lctl_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
 
 lfs_SOURCES = lfs.c parser.c lustre_cfg.c obd.c
-lfs_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL)
-lfs_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a 
+lfs_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS)
+lfs_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
 
 loadgen_SOURCES = loadgen.c lustre_cfg.c obd.c
 loadgen_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS)
@@ -45,7 +45,7 @@ if EXT2FS_DEVEL
 EXT2FSLIB = -lext2fs
 E2PLIB = -le2p
 else
-E2PLIB = 
+E2PLIB =
 EXT2FSLIB =
 endif