webkit2gtk: fix detection of ruby on cross

This commit is contained in:
Alessio Sergi 2017-08-15 15:56:40 +02:00
parent 1367351ea8
commit 400f689a58

View file

@ -36,7 +36,7 @@ if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
else
# Make cmake detect Ruby headers in cross base
configure_args+=" -DRUBY_CONFIG_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/ruby-2.2.0"
configure_args+=" -DRUBY_VERSION=2.4 -DRUBY_CONFIG_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/ruby-2.4.0"
# Fix non-working target CPU detection
configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE%-musl}"
fi