https://sourceware.org/bugzilla/show_bug.cgi?id=31447
Aaron Merey <amerey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amerey at redhat dot com
--- Comment #5 from Aaron Merey <amerey at redhat dot com> ---
(In reply to Di Chen from comment #4)
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 1d592d4d..746c8817 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -43,6 +43,8 @@ if BUILD_STATIC
> libasm = ../libasm/libasm.a
> libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) -ldl -lpthread
> libelf = ../libelf/libelf.a -lz $(zstd_LIBS)
> +libebl = ../libebl/libebl.a ../backends/libebl_backends.a ../libcpu/libcpu.a
> +libdwelf = ../libdwelf/libdwelf.a
> if LIBDEBUGINFOD
> libdebuginfod = ../debuginfod/libdebuginfod.a -lpthread $(libcurl_LIBS)
> else
> @@ -60,6 +62,7 @@ endif
> endif
> libebl = ../libebl/libebl.a ../backends/libebl_backends.a ../libcpu/libcpu.a
> libeu = ../lib/libeu.a
> +libdwelf = ../libdwelf/libdwelf.a
>
> if DEMANGLE
> demanglelib = -lstdc++
> @@ -81,7 +84,7 @@ readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu)
> $(argp_LDADD)
> nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD)
> $(obstack_LIBS) \
> $(demanglelib)
> size_LDADD = $(libelf) $(libeu) $(argp_LDADD)
> -strip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(argp_LDADD)
> +strip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) $(libdwelf)
> $(argp_LDADD)
> elflint_LDADD = $(libebl) $(libdw) $(libelf) $(libeu) $(argp_LDADD)
> findtextrel_LDADD = $(libdw) $(libelf) $(libeu) $(argp_LDADD)
> addr2line_LDADD = $(libdw) $(libelf) $(libeu) $(argp_LDADD) $(demanglelib)
These Makefile changes aren't needed since strip is already built with libdwelf
and using libdwelf functions. Reverting these Makefile changes should fix the
linker error.
--
You are receiving this mail because:
You are on the CC list for the bug.