blob: c62007f5077e310f98c75d9596072492f4acb3b5 [file] [log] [blame]
#!/bin/sh
if [ -z "$OECORE_NATIVE_SYSROOT" ]; then
exec "meson.real" "$@"
fi
if [ -z "$SSL_CERT_DIR" ]; then
export SSL_CERT_DIR="${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/"
fi
# If these are set to a cross-compile path, meson will get confused and try to
# use them as native tools. Unset them to prevent this, as all the cross-compile
# config is already in meson.cross.
unset CC CXX CPP LD AR NM STRIP
exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \
--cross-file "${OECORE_NATIVE_SYSROOT}/usr/share/meson/${TARGET_PREFIX}meson.cross" \
--native-file "${OECORE_NATIVE_SYSROOT}/usr/share/meson/meson.native" \
"$@"