]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
misc: link filefrag with the ext2fs library
authorTheodore Ts'o <tytso@mit.edu>
Wed, 21 May 2025 17:41:11 +0000 (13:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 May 2025 17:41:11 +0000 (13:41 -0400)
If inline functions are not enabled, filefrag needs to link with
libext2fs to be able to access the ext2fs_log_u32() function.

Fixes: be4834c29e6f ("misc: deduplicate log2/log10 functions")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/Makefile.in

index ce4a24d5151c817199f80ef6ec245312cf5f100b..055f20b68ccddce96c031d287ff92754ffb370a5 100644 (file)
@@ -412,9 +412,10 @@ check_fuzzer: check_fuzzer.o $(DEPLIBS)
        $(E) "  LD $@"
        $(Q) $(CC) $(ALL_LDFLAGS) -o check_fuzzer check_fuzzer.o $(LIBS)
 
-filefrag: $(FILEFRAG_OBJS)
+filefrag: $(FILEFRAG_OBJS) $(DEPLIBS)
        $(E) "  LD $@"
-       $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS) $(SYSLIBS)
+       $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS) $(LIBS) \
+               $(SYSLIBS)
 
 filefrag.profiled: $(FILEFRAG_OBJS)
        $(E) "  LD $@"