Skip to content

Commit

Permalink
devel/binutils: fix build with lld 17
Browse files Browse the repository at this point in the history
Some versioned symbols in libctf are undefined when libctf-nobfd.so is
linked. Suppress errors with lld >= 17 due to these undefined symbols.

PR:	273791
MFH:	2023Q3
  • Loading branch information
DimitryAndric authored and cschuber committed Sep 14, 2023
1 parent 1ede3ce commit 495843b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devel/binutils/Makefile
Expand Up @@ -40,6 +40,10 @@ CONFIGURE_ARGS+= --disable-werror \
MAKE_ARGS+= LIBDL="" V=1
MAKE_ENV+= ac_cv_func_sbrk=0

# Some versioned symbols in libctf are undefined when libctf-nobfd.so is linked.
# Suppress errors with lld >= 17 due to these undefined symbols.
LDFLAGS+= -Wl,--undefined-version

# Tests will always fail because --compress-debug-sections is always set to
# zlib-gabi regardless of the compression setting by ./configure.
# TEST_TARGET= check
Expand Down

0 comments on commit 495843b

Please sign in to comment.