From: Jian Yu Date: Sat, 23 Jan 2021 20:47:29 +0000 (-0800) Subject: LU-14356 utils: change position of the -lext2fs option X-Git-Tag: 2.14.0-RC1~3 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9cd651aead327ae4589b58dde5818b068c89b3e5 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 --- 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