]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
debug: Do not link tst-sprintf-fortify-rdonly against the dlopen module
authorFlorian Weimer <fweimer@redhat.com>
Fri, 18 Jul 2025 17:58:56 +0000 (19:58 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 18 Jul 2025 17:58:56 +0000 (19:58 +0200)
The test intends to load tst-sprintf-fortify-rdonly-dlopen.so via
dlopen, and directly linking against it prevents that.

Reviewed-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
debug/Makefile

index f29bd20b97273746dcffbe1423ea35950e762865..13f638e344ec9198f29d1b06ad8323c16860f74a 100644 (file)
@@ -187,9 +187,9 @@ CFLAGS-tst-sprintf-fortify-rdonly-dlopen.c += $(no-fortify-source) -D_FORTIFY_SO
 CFLAGS-tst-fortify-syslog.c += $(no-fortify-source) -D_FORTIFY_SOURCE=2
 CFLAGS-tst-fortify-wide.c += $(no-fortify-source) -D_FORTIFY_SOURCE=2
 
-$(objpfx)tst-sprintf-fortify-rdonly: \
-       $(objpfx)tst-sprintf-fortify-rdonly-mod.so \
-       $(objpfx)tst-sprintf-fortify-rdonly-dlopen.so
+$(objpfx)tst-sprintf-fortify-rdonly: $(objpfx)tst-sprintf-fortify-rdonly-mod.so
+$(objpfx)tst-sprintf-fortify-rdonly.out: \
+  $(objpfx)tst-sprintf-fortify-rdonly-dlopen.so
 
 # _FORTIFY_SOURCE tests.
 # Auto-generate tests for _FORTIFY_SOURCE for different levels, compilers and