void-packages/srcpkgs/glib/files/gi-xbps-qemuwrapper
oreo639 70b7cfe280 glib: update to 2.84.0.
Switch back to using dladdr to get libdir similar to the gobject-introspection
patch and similar to what is done with Windows and MacOS.
2025-03-25 21:36:46 -07:00

9 lines
367 B
Bash

#!/bin/sh
# Ensure GIO_MODULE_DIR is not set so we don't load random things
# which may then get deleted (or their dependencies) and potentially segfault
/usr/bin/qemu-${XBPS_TARGET_QEMU_MACHINE}-static ${GIR_EXTRA_OPTIONS} \
-L ${XBPS_CROSS_BASE} \
-E LD_LIBRARY_PATH="${XBPS_CROSS_BASE}/usr/lib:.libs:${GIR_EXTRA_LIBS_PATH}" \
-U GIO_MODULE_DIR \
"$@"