Skip to content

Commit

Permalink
wireshark: (mips64r6el) disable LTO, append -mxgot to workaround GOT …
Browse files Browse the repository at this point in the history
…size limit
  • Loading branch information
MingcongBai authored and cthbleachbit committed Jan 27, 2024
1 parent e88eb58 commit f67f09a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app-network/wireshark/autobuild/defines
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ PKGDEP="brotli c-ares desktop-file-utils glib gnutls krb5 libcap libgcrypt libnl
BUILDDEP="docbook-xsl doxygen lynx w3m asciidoctor"

CMAKE_AFTER="-DDISABLE_WERROR=ON"

# FIXME: /usr/bin/ld: not enough GOT space for local GOT entries
NOLTO__MIPS64R6EL=1
8 changes: 8 additions & 0 deletions app-network/wireshark/autobuild/prepare
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
export PATH="$PATH:/usr/lib/qt5/bin"

# FIXME: /usr/bin/ld: not enough GOT space for local GOT entries
# /usr/bin/ld: BFD (GNU Binutils) 2.41 internal error, aborting at
# .../binutils-2.41/bfd/elfxx-mips.c:10714 in _bfd_mips_elf_relocate_section
if ab_match_arch mips64r6el; then
abinfo "Appending -mxgot to fix linkage ..."
export LDFLAGS="${LDFLAGS} -mxgot"
fi

0 comments on commit f67f09a

Please sign in to comment.