detach_sigkill_race also need to link with -Wl,-z,now and then minimize the
library code you rely on. Otherwise, it will fail due to the reason mentioned
in https://bugzilla.redhat.com/show_bug.cgi?id=542731 .
Signed-off-by: CAI Qian <caiq...@redhat.com>
--- tests/Makefile.am.orig 2010-01-12 17:19:11.000000000 +0800
+++ tests/Makefile.am 2010-01-12 17:55:17.000000000 +0800
@@ -113,6 +113,7 @@
erestartsys_trap_32fails_debugger_LDFLAGS = -lutil
# After clone syscall it must call no glibc code (such as _dl_runtime_resolve).
clone_multi_ptrace_LDFLAGS = -Wl,-z,now
+detach_sigkill_race_LDFLAGS = -Wl,-z,now
check_TESTS = $(SAFE)
xcheck_TESTS = $(CRASHERS)