Skip to content

Commit

Permalink
x11/virtualgl: fix build with lld 17
Browse files Browse the repository at this point in the history
Building x11/virtualgl with lld 17 results in the following link errors:

  ld: error: version script assignment of 'global' to symbol 'clCreateContext' failed: symbol not defined

Since the same linker version script is used for all "libvglfaker"
library variants, where only one of the implements the clCreateContext
symbol, suppress errors with lld >= 17 due to this undefined symbol.

PR:		273753
MFH:		2023Q4
  • Loading branch information
DimitryAndric committed Dec 3, 2023
1 parent e7ab92c commit 37790b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x11/virtualgl/Makefile
Expand Up @@ -25,6 +25,11 @@ CMAKE_ARGS= -DTJPEG_INCLUDE_DIR=${LOCALBASE}/include \
-DCMAKE_INSTALL_DOCDIR=${DOCSDIR}
CMAKE_INSTALL_PREFIX= ${LOCALBASE}/VirtualGL

# Some versioned symbols in virtualgl are undefined when libvglfaker.so
# is linked. Suppress errors with lld >= 17 due to these undefined
# symbols.
LDFLAGS+= -Wl,--undefined-version

DOCSDIR= ${LOCALBASE}/VirtualGL/doc

OPTIONS_DEFINE= OPENCL OPENSSL XVIDEO DOCS
Expand Down

0 comments on commit 37790b2

Please sign in to comment.