From 6abf052d171d602a9b3c5de1f94061b9fb4bfb16 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Fri, 24 Nov 2023 13:38:32 +0100 Subject: graphics/mesa: Re-add --undefined-version This is needed for linking with lld 17 and it was lost in the update to 23.1.8 Reported by: dim Fixes: 29d855b6f775 ("graphics/mesa: update to 23.1.8") Sponsored by: Beckohh Automation GmbH & Co. KG --- graphics/mesa-dri/Makefile.common | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/graphics/mesa-dri/Makefile.common b/graphics/mesa-dri/Makefile.common index c046d4f0eb4e..1095a78d359c 100644 --- a/graphics/mesa-dri/Makefile.common +++ b/graphics/mesa-dri/Makefile.common @@ -82,6 +82,12 @@ BINARY_ALIAS+= python3=${PYTHON_VERSION} CONFIGURE_ENV+= LLVM_CONFIG=${LLVM_CONFIG} + +# Some symbols in mesa's linker version scripts are not always defined, +# depending on configuration options. Suppress errors with lld >= 17 due to +# these undefined symbols. +LDFLAGS+= -Wl,--undefined-version + LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${LLVM_VERSION}/lib MESON_ARGS+= -Dllvm=enabled \ -Dlibunwind=disabled \ -- cgit v1.2.3