aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-01-10 16:19:00 +0000
committerDimitry Andric <dim@FreeBSD.org>2024-01-10 16:20:30 +0000
commit2ed094adef32cc683a9a077f1c8eb2241754068a (patch)
tree503964d0084800f4992d465ff4b641759e4e634f
parent5e95caad9ea14b42e1c803642dfe8d02c5c2e4dd (diff)
downloadports-2ed094adef32cc683a9a077f1c8eb2241754068a.tar.gz
ports-2ed094adef32cc683a9a077f1c8eb2241754068a.zip
databases/rrdtool: fix build with lld 17
Some symbols in the linker version script librrd.sym are undefined when the CACHE option is off. Suppress errors with lld >= 17 due to these undefined symbols. PR: 273753 MFH: 2024Q1
-rw-r--r--databases/rrdtool/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/databases/rrdtool/Makefile b/databases/rrdtool/Makefile
index 743cc8636da1..048243ba52ae 100644
--- a/databases/rrdtool/Makefile
+++ b/databases/rrdtool/Makefile
@@ -1,6 +1,6 @@
PORTNAME= rrdtool
DISTVERSION= 1.8.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= databases graphics
MASTER_SITES= https://github.com/oetiker/rrdtool-1.x/releases/download/v${DISTVERSION}/
@@ -22,6 +22,10 @@ CONFIGURE_ARGS= --disable-tcl
CONFIGURE_ENV= RRDDOCDIR=${DOCSDIR:Q}
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
+# Some symbols in the linker version script librrd.sym are undefined when the
+# CACHE option is off. Suppress errors with lld >= 17 due to these undefined
+# symbols.
+LDFLAGS+= -Wl,--undefined-version
CONFLICTS= rrdtool12
PORTDOCS= *
PORTEXAMPLES= cgi-demo.cgi