]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: fix libblkid fuzz sample test if-endif
authorKarel Zak <kzak@redhat.com>
Fri, 17 Mar 2023 12:11:50 +0000 (13:11 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 17 Mar 2023 12:11:50 +0000 (13:11 +0100)
All tests have to be covered by BUILD_LIBBLKID_TESTS otherwise
proper CFLAGS ($blkid_tests_cflags) are undefined.

Fixes: https://github.com/util-linux/util-linux/issues/2119
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/Makemodule.am

index b760a802e020703803eb227f9ef5895535e6c29a..bc90eb8fde96a31e1e7c3efa81994b82b87a5418 100644 (file)
@@ -224,8 +224,6 @@ test_blkid_fuzz_LDFLAGS = $(blkid_tests_ldflags) -lpthread
 test_blkid_fuzz_LDADD = $(blkid_tests_ldadd) $(LIB_FUZZING_ENGINE)
 endif
 
-endif # BUILD_LIBBLKID_TESTS
-
 check_PROGRAMS += test_blkid_fuzz_sample
 
 test_blkid_fuzz_sample_SOURCES = libblkid/src/fuzz.c
@@ -234,6 +232,7 @@ test_blkid_fuzz_sample_CFLAGS = $(blkid_tests_cflags)
 test_blkid_fuzz_sample_LDFLAGS = $(blkid_tests_ldflags)
 test_blkid_fuzz_sample_LDADD = $(blkid_tests_ldadd)
 
+endif # BUILD_LIBBLKID_TESTS
 
 # move lib from $(usrlib_execdir) to $(libdir) if needed
 install-exec-hook-libblkid: