Skip to content

Commit

Permalink
security/gnutls: fix build with lld 17
Browse files Browse the repository at this point in the history
Since lld17 the default is to have the LDFLAGS --no-undefined-version
activated by default, which means that versions scripts should not
contain undefined symbols

2 bugs in gnutls:
1/ the configure scripts tests an empty binary against a list of version
symbols, meaning it breaks in configure (hence the activation of
--enable-ld-version-scripts) which means currently provided gnutls
packages are build without version scripts which breaks existing
installations...
2/ the version script used to link the binary can contain undefined
symbols depending on the options used to build (hence the addition of
the LDFLAGS.
  • Loading branch information
bapt committed Feb 26, 2024
1 parent 9a2c9f6 commit 2b78697
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions security/gnutls/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gnutls
PORTVERSION= 3.7.10
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= security net
MASTER_SITES= GNUPG/gnutls/v${PORTVERSION:R}

Expand Down Expand Up @@ -31,7 +31,9 @@ CONFIGURE_ARGS= --disable-guile \
--without-brotli \
--without-zstd \
--without-tpm \
--without-tpm2
--without-tpm2 \
--enable-ld-version-script
LDFLAGS= -Wl,--undefined-version
MAKE_ENV= MAKEINFOFLAGS=--no-split
INSTALL_TARGET= install-strip
TEST_TARGET= check
Expand Down

0 comments on commit 2b78697

Please sign in to comment.