From d2613ebb18c4756dd5bd97f083bd55598b92aeb3 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 28 Sep 2023 03:41:29 +0200 Subject: x11/xdg-desktop-portal-hyprland: unbreak build after e602fc540b59 meson.build:1:0: ERROR: Unable to detect linker for compiler `c++ -Wl,--version -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fexperimental-library -nostdinc++ -isystem/wrkdirs/usr/ports/x11/xdg-desktop-portal-hyprland/work-qt5/libcxx_prefix/include/c++/v1` stdout: stderr: c++: error: unknown argument: '-fexperimental-library' Reported by: pkg-fallout (direct commit to 2023Q3 as 4df0e66a3662 is missing on the branch) --- x11/xdg-desktop-portal-hyprland/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x11/xdg-desktop-portal-hyprland/Makefile b/x11/xdg-desktop-portal-hyprland/Makefile index 7681b0d0acab..875637935447 100644 --- a/x11/xdg-desktop-portal-hyprland/Makefile +++ b/x11/xdg-desktop-portal-hyprland/Makefile @@ -58,8 +58,11 @@ post-configure: .if ${CXX} == c++ && exists(/usr/lib/libc++.so) .if !exists(/usr/include/c++/v1/__ranges/as_rvalue_view.h) || make(makesum) || make(fetch) BUILD_DEPENDS+= ${CMAKE_BIN}:devel/cmake-core -USES+= llvm:min=16,build,export +USES+= llvm:min=16,build PATH:= ${LLVM_PREFIX}/bin:${PATH} # XXX _CMAKE_TOOLCHAIN_SUFFIX vs. devel/llvm* +CC= clang${LLVM_VERSION} +CXX= clang++${LLVM_VERSION} +CPP= clang-cpp${LLVM_VERSION} CONFIGURE_ENV+= CC="${CC}" CXX="${CXX}" CPP="${CPP}" CMAKE_BIN= ${LOCALBASE}/bin/cmake -- cgit v1.2.3