On Wed, 18 Oct 2023 09:31:22 GMT, Daniel Jeliński <djelin...@openjdk.org> wrote:
> hsdis-binutils.c doesn't use any functions from libiberty.h. This header is > absent on Ubuntu (installed separately, and under a different path), so > removing the include fixes the hsdis compilation on Ubuntu. > > Additionally, the static link library for libiberty is not needed on Ubuntu; > I changed the autoconf check to make libiberty optional. > > Verification (Ubuntu): > - build with-binutils=system works > - build with-binutils-src=binutils-2.30 continues to work > - build with-binutils-src=binutils-2.38 continues to work > > Source builds with versions newer than 2.38 fail, see #15138 Marked as reviewed by erikj (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/16238#pullrequestreview-1685008193