configure: Enable section_data_rel_ro for FreeBSD and NetBSD aarch64 / arm

Fixes the build. It's a requirement when utilizing PIE.

Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Brad Smith 2023-12-24 14:33:31 -05:00 committed by Michael Niedermayer
parent f5f414d9c4
commit 6066c430e3
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 2 additions and 0 deletions

2
configure vendored
View File

@ -5618,6 +5618,7 @@ case $target_os in
;; ;;
netbsd) netbsd)
disable symver disable symver
enable section_data_rel_ro
oss_indev_extralibs="-lossaudio" oss_indev_extralibs="-lossaudio"
oss_outdev_extralibs="-lossaudio" oss_outdev_extralibs="-lossaudio"
enabled gcc || check_ldflags -Wl,-zmuldefs enabled gcc || check_ldflags -Wl,-zmuldefs
@ -5636,6 +5637,7 @@ case $target_os in
disable symver disable symver
;; ;;
freebsd) freebsd)
enable section_data_rel_ro
;; ;;
bsd/os) bsd/os)
add_extralibs -lpoll -lgnugetopt add_extralibs -lpoll -lgnugetopt