$NetBSD: patch-configure,v 1.9 2025/09/22 14:27:16 adam Exp $ Enable PIC and section_data_rel_ro on NetBSD, even on i386, to avoid text relocations. Allow newer SDL2 versions. Do not use 'rsync'. --- configure.orig 2025-03-12 22:05:46.000000000 +0000 +++ configure @@ -4941,6 +4941,7 @@ case $target_os in ;; netbsd) disable symver + enable pic enable section_data_rel_ro oss_indev_extralibs="-lossaudio" oss_outdev_extralibs="-lossaudio" @@ -5363,10 +5364,13 @@ check_cc < @@ -6102,7 +6106,7 @@ fi if enabled sdl2; then SDL2_CONFIG="${cross_prefix}sdl2-config" - if check_pkg_config sdl2 "sdl2 >= 2.0.1 sdl2 < 2.1.0" SDL_events.h SDL_PollEvent; then + if check_pkg_config sdl2 "sdl2 >= 2.0.1 " SDL_events.h SDL_PollEvent; then check_func SDL_Init $sdl2_extralibs $sdl2_cflags || disable sdl2 elif "${SDL2_CONFIG}" --version > /dev/null 2>&1; then @@ -6146,7 +6150,6 @@ enabled makeinfo \ disabled makeinfo_html && texi2html --help 2> /dev/null | grep -q 'init-file' && enable texi2html || disable texi2html perl -v > /dev/null 2>&1 && enable perl || disable perl pod2man --help > /dev/null 2>&1 && enable pod2man || disable pod2man -rsync --help 2> /dev/null | grep -q 'contimeout' && enable rsync_contimeout || disable rsync_contimeout # check V4L2 codecs available in the API check_header linux/fb.h