Whamcloud - gitweb
LU-1905 build: Always create libcfs.a
authorJames Simmons <uja.ornl@gmail.com>
Wed, 12 Sep 2012 11:40:48 +0000 (07:40 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 17 Sep 2012 21:48:32 +0000 (17:48 -0400)
Lustre and LNET utilites have become dependent on libcfs.a but
one can easily disable libcfs.a from being built by disabling
liblustre creation. This patch have Lustre always build libcfs.a.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: Id80f9baa16da238eca708409e0b5d5248e437c5a
Reviewed-on: http://review.whamcloud.com/3953
Tested-by: Hudson
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Reviewed-by: Artem Blagodarenko <artem_blagodarenko@xyratex.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
libcfs/libcfs/autoMakefile.am

index 0e7819c..b7a41eb 100644 (file)
@@ -42,7 +42,6 @@ SUBDIRS += darwin
 endif
 DIST_SUBDIRS = linux util posix darwin
 
-if LIBLUSTRE
 noinst_LIBRARIES= libcfs.a
 libcfs_a_SOURCES= posix/posix-debug.c user-prim.c user-lock.c user-tcpip.c  \
                  prng.c user-bitops.c user-mem.c hash.c kernel_user_comm.c \
@@ -56,7 +55,6 @@ endif
 
 libcfs_a_CPPFLAGS = $(LLCPPFLAGS)
 libcfs_a_CFLAGS = $(LLCFLAGS)
-endif
 
 lib_LIBRARIES = libcfsutil.a
 libcfsutil_a_SOURCES = nidstrings.c libcfs_string.c util/parser.c      \