diff --git a/srcpkgs/SDL2/template b/srcpkgs/SDL2/template index e265ed9a3cf..2271597a557 100644 --- a/srcpkgs/SDL2/template +++ b/srcpkgs/SDL2/template @@ -90,6 +90,9 @@ if [ "$build_option_wayland" ]; then fi configure_args+=" --enable-video-wayland --disable-wayland-shared" makedepends+=" libxkbcommon-devel wayland-devel wayland-protocols" + if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" wayland-devel" + fi else configure_args+=" --disable-video-wayland" fi