Whamcloud - gitweb
LU-7356 build: handle configure options for mount plugin 81/17581/16
authorJames Simmons <uja.ornl@yahoo.com>
Tue, 1 Aug 2017 05:37:40 +0000 (01:37 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 5 Aug 2017 00:36:36 +0000 (00:36 +0000)
commitd6f57eda898cc80a1cff49ad3875021749563dbf
treef5047a51a0a474c964ae2e01d564a36a40fcf44a
parent62ed4f22e21075daa074f2c7f92be6509d76e51c
LU-7356 build: handle configure options for mount plugin

Currently if you build lustre with configure options
--disable-shared and/or --disable-static it will fail
to build in the case of the mount plugins. The mount
plugins are always built to be sharable code using
libtool but this is not compatiable with the confiure
--disable-share option. The solution was to create a
temporary static library and for the static case we
directly link into the lustre utilites. If shared
libraries are enabled then that temporary library
is turned into a dynamic plugin. The lustre utilites
was updated to handle both cases.

Test-Parameters: trivial

Change-Id: I0eec25c8bce71c0e5c533ff3dfbe752677f37a26
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-on: https://review.whamcloud.com/17581
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
config/lustre-build.m4
lustre.spec.in
lustre/utils/Makefile.am
lustre/utils/libmount_utils_ldiskfs.c [moved from lustre/utils/mount_utils_ldiskfs.c with 98% similarity]
lustre/utils/libmount_utils_zfs.c [moved from lustre/utils/mount_utils_zfs.c with 97% similarity]
lustre/utils/mount_utils.c
lustre/utils/mount_utils.h