git: d3431fe0b2c2 - main - graphics/mesa-dri: drop USE_LDCONFIG due to dlopen(3)

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 14 Dec 2022 12:32:09 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d3431fe0b2c27a0ec5a4a2f7a9d3fbbede9a4555

commit d3431fe0b2c27a0ec5a4a2f7a9d3fbbede9a4555
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-12-14 11:32:03 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-12-14 12:04:26 +0000

    graphics/mesa-dri: drop USE_LDCONFIG due to dlopen(3)
    
    OpenGL drivers in mesa-dri lack headers and cannot be used by ld(1)
    via -l<lib> due to missing "lib" prefix. libglvnd uses dlopen(3)
    to find lib(EGL|GLX)_mesa.so in mesa-libs which uses dlopen(3)
    to find the drivers under ${PREFIX}/lib/dri (or LIBGL_DRIVERS_PATH).
    
    Vulkan drivers in mesa-dri lack headers and only expose ICD symbols
    for vulkan-loader which uses dlopen(3) to find the drivers via
    ${PREFIX}/share/vulkan/icd.d/*.json (or VK_ICD_FILENAMES).
    
    Approved by:    manu (on dev-commits-ports-main@ list)
---
 graphics/mesa-dri/Makefile | 2 --
 1 file changed, 2 deletions(-)

diff --git a/graphics/mesa-dri/Makefile b/graphics/mesa-dri/Makefile
index 956cfb1d6f3e..94c8503053a7 100644
--- a/graphics/mesa-dri/Makefile
+++ b/graphics/mesa-dri/Makefile
@@ -27,8 +27,6 @@ ZSTD_DESC=		Use ZSTD for shader cache
 ZSTD_LIB_DEPENDS=	libzstd.so:archivers/zstd
 ZSTD_MESON_ENABLED=	zstd
 
-USE_LDCONFIG=		yes
-
 .include <bsd.port.options.mk>
 .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"