Hi, this patch fixes the build with ld.bfd for me:
Index: patches/patch-cmake_modules_GObjectIntrospectionMacros_cmake =================================================================== RCS file: patches/patch-cmake_modules_GObjectIntrospectionMacros_cmake diff -N patches/patch-cmake_modules_GObjectIntrospectionMacros_cmake --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-cmake_modules_GObjectIntrospectionMacros_cmake 9 Jan 2019 20:51:05 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ + +Index: cmake/modules/GObjectIntrospectionMacros.cmake +--- cmake/modules/GObjectIntrospectionMacros.cmake.orig ++++ cmake/modules/GObjectIntrospectionMacros.cmake +@@ -53,6 +53,7 @@ macro(gir_add_introspections introspections_girs) + add_custom_command( + COMMAND ${INTROSPECTION_SCANNER} + ${INTROSPECTION_SCANNER_ARGS} ++ -L /usr/X11R6/lib + --namespace=${_gir_namespace} + --nsversion=${_gir_version} + ${_gir_libtool} But it's obviously ugly and wrong (hard coded /usr/X11R6). I'm not very familiar with cmake, so if anyone could help a little bit (passing -L ${X11BASE}lib via CONFIGURE_ARGS to the invocation of g-ir-scanner), I'd be really happy. Ciao, Kili