git: 014c6ea64d07 - 2024Q1 - databases/rrdtool: fix build with lld 17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Jan 2024 16:23:19 UTC
The branch 2024Q1 has been updated by dim:
URL: https://cgit.FreeBSD.org/ports/commit/?id=014c6ea64d07ff7f3e35d82d2db6e90c1e9eef9d
commit 014c6ea64d07ff7f3e35d82d2db6e90c1e9eef9d
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-01-10 16:19:00 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-01-10 16:23:10 +0000
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
(cherry picked from commit 2ed094adef32cc683a9a077f1c8eb2241754068a)
---
databases/rrdtool/Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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