Whamcloud - gitweb
LU-14356 utils: change position of the -lext2fs option 05/41305/2
authorJian Yu <yujian@whamcloud.com>
Sat, 23 Jan 2021 20:47:29 +0000 (12:47 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 Jan 2021 07:16:46 +0000 (07:16 +0000)
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 <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41305
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/Makefile.am

index cc59389..28a33d2 100644 (file)
@@ -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