diff options
| author | Mark Wielaard <mark@klomp.org> | 2025-07-08 13:05:37 +0200 | 
|---|---|---|
| committer | Mark Wielaard <mark@klomp.org> | 2025-07-08 13:05:46 +0200 | 
| commit | c011f478dca2c89d52958a8999b99663d14db85d (patch) | |
| tree | 2990e1fc397e9bc9abc65787bbea1973dbc9b7c9 | |
| parent | tests/debugedit.at: Replace 'type -p' bashism (diff) | |
find-debuginfo.at: Make sure foo, bar and baz have build-ids
There are still distros that don't configure gcc with --enable-linker-build-id. So explicitly add -Wl,--build-id to the test binaries generated. https://sourceware.org/bugzilla/show_bug.cgi?id=33135 Signed-off-by: Mark Wielaard <mark@klomp.org> 
| -rw-r--r-- | tests/find-debuginfo.at | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/tests/find-debuginfo.at b/tests/find-debuginfo.at index dd59374..1d7ad57 100644 --- a/tests/find-debuginfo.at +++ b/tests/find-debuginfo.at | |||
| @@ -93,9 +93,9 @@ cp "${abs_srcdir}"/data/SOURCES/baz.c subdir_build | |||
| 93 | cd subdir_build | 93 | cd subdir_build | 
| 94 | # Three almost identical binaries | 94 | # Three almost identical binaries | 
| 95 | # so dwz has something to put into the alt file | 95 | # so dwz has something to put into the alt file | 
| 96 | $CC $CFLAGS -g3 -I. -o foo foo.c bar.c baz.c | 96 | $CC $CFLAGS -Wl,--build-id -g3 -I. -o foo foo.c bar.c baz.c | 
| 97 | $CC $CFLAGS -g3 -I. -o bar bar.c baz.c foo.c | 97 | $CC $CFLAGS -Wl,--build-id -g3 -I. -o bar bar.c baz.c foo.c | 
| 98 | $CC $CFLAGS -g3 -I. -o baz baz.c foo.c bar.c | 98 | $CC $CFLAGS -Wl,--build-id -g3 -I. -o baz baz.c foo.c bar.c | 
| 99 | cd .. | 99 | cd .. | 
| 100 | ]]) | 100 | ]]) | 
| 101 | 101 | ||
