From 9cd651aead327ae4589b58dde5818b068c89b3e5 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Sat, 23 Jan 2021 12:47:29 -0800 Subject: [PATCH] LU-14356 utils: change position of the -lext2fs option This patch changes the position of the -lext2fs option in the gcc command line so as to resolve the following issue: mount_osd_ldiskfs.so: undefined symbol: unix_io_manager Change-Id: I9ceaca867697c132b8d4a7800169101a024d17b8 Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/41305 Reviewed-by: James Simmons Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/utils/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/utils/Makefile.am b/lustre/utils/Makefile.am index cc59389..28a33d2 100644 --- a/lustre/utils/Makefile.am +++ b/lustre/utils/Makefile.am @@ -185,10 +185,10 @@ libmount_utils_ldiskfs_a_CPPFLAGS := if PLUGINS lib_LTLIBRARIES += libmount_utils_ldiskfs.la libmount_utils_ldiskfs.la : libmount_utils_ldiskfs.a - $(CC) $(LDFLAGS) $(MNTMODLDFLAGS) -shared -export-dynamic -lext2fs \ + $(CC) $(LDFLAGS) $(MNTMODLDFLAGS) -shared -export-dynamic \ -o mount_osd_ldiskfs.so \ `$(AR) -t libmount_utils_ldiskfs.a` \ - $(MNTMODLIBS) + $(MNTMODLIBS) -lext2fs else MNTMODLIBS += -lext2fs PLUGIN_LIB += libmount_utils_ldiskfs.a -- 1.8.3.1