git: c4c6f690d7bb - main - x11/xdg-desktop-portal-hyprland: unbreak with libc++ 16 after 4ce3b4b71dcb
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Sep 2023 04:01:58 UTC
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c4c6f690d7bb8de7a320f0cb73b9decdcc1437be
commit c4c6f690d7bb8de7a320f0cb73b9decdcc1437be
Author: Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-09-10 03:52:53 +0000
Commit: Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-09-10 04:01:29 +0000
x11/xdg-desktop-portal-hyprland: unbreak with libc++ 16 after 4ce3b4b71dcb
/usr/local/bin/ld: src/xdg-desktop-portal-hyprland.p/main.cpp.o: in function `unsigned int std::__1::__format_spec::__substitute_arg_id[abi:v160006]<std::__1::basic_format_context<std::__1::back_insert_iterator<std::__1::__format::__output_buffer<char> >, char> >(std::__1::basic_format_arg<std::__1::basic_format_context<std::__1::back_insert_iterator<std::__1::__format::__output_buffer<char> >, char> >)::{lambda(auto:1)#1}::operator()<std::__1::monostate>(std::__1::monostate) const [clone .constprop.0]':
main.cpp:(.text.unlikely+0x23): undefined reference to `vtable for std::__1::format_error'
/usr/local/bin/ld: main.cpp:(.text.unlikely+0x28): undefined reference to `std::__1::format_error::~format_error()'
/usr/local/bin/ld: main.cpp:(.text.unlikely+0x2d): undefined reference to `typeinfo for std::__1::format_error'
[...]
Reported by: pkg-fallout
---
x11/xdg-desktop-portal-hyprland/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/x11/xdg-desktop-portal-hyprland/Makefile b/x11/xdg-desktop-portal-hyprland/Makefile
index 2888c7016f1d..ed379e88770a 100644
--- a/x11/xdg-desktop-portal-hyprland/Makefile
+++ b/x11/xdg-desktop-portal-hyprland/Makefile
@@ -39,7 +39,9 @@ PLIST_FILES= libexec/${PORTNAME} \
# XXX Drop after FreeBSD 14.0 EOL around 2025-03-01
.if exists(/usr/lib/libc++.so) && !exists(/usr/include/c++/v1/__format/write_escaped.h)
+# Emulate -fexperimental-library for GCC
CXXFLAGS+= -D_LIBCPP_ENABLE_EXPERIMENTAL # std::vformat
+LDFLAGS+= -lc++experimental
.endif
.ifdef GH_TUPLE