tests: Add -rdynamic to dwfl_proc_attach_LDFLAGS
authorMark Wielaard <mark@klomp.org>
Thu, 18 Nov 2021 20:34:57 +0000 (21:34 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 25 Nov 2021 14:46:27 +0000 (15:46 +0100)
commita4f766fa0f77a450a41bee1f8f8948306dfa3695
tree8155aebd5549d603e7fc8be72517f70b765e93c6
parent2e3bc18672f0cede0332ae3194eb2e33d4cc5fd7
tests: Add -rdynamic to dwfl_proc_attach_LDFLAGS

dwfl-proc-attach uses (overrides) dlopen (so it does nothing).  This
seems to cause a versioned dlopen symbol to be pulled in when building
with LTO. Resulting in a link failure (when dlopen isn't integrated
into libc):

/usr/bin/ld: dwfl-proc-attach.o (symbol from plugin): undefined
reference to symbol 'dlopen@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib64/libdl.so.2: error adding symbols: DSO missing
from command line collect2: error: ld returned 1 exit status

Add -rdynamic to the LDFLAGS to add all symbols to the dynamic symbol
table for dwfl-proc-attach.

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/Makefile.am