Skip to content

Commit

Permalink
graphics/mesa-dri: drop USE_LDCONFIG due to dlopen(3)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jbeich committed Dec 14, 2022
1 parent dfe189d commit d3431fe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions graphics/mesa-dri/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit d3431fe

Please sign in to comment.