mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 19:50:31 -04:00
enable support for the .data.rel.ro section because the arm64 assembly code in ffmpeg depends on it in case of -pie and -fPIC Reviewed by: jbeich Differential Revision: https://reviews.freebsd.org/D41609
34 lines
863 B
Text
34 lines
863 B
Text
--- configure.orig 2023-02-27 20:43:45 UTC
|
|
+++ configure
|
|
@@ -3888,13 +3888,7 @@ target_os_default=$(tolower $(uname -s))
|
|
host_os=$target_os_default
|
|
|
|
# machine
|
|
-if test "$target_os_default" = aix; then
|
|
- arch_default=$(uname -p)
|
|
- strip_default="strip -X32_64"
|
|
- nm_default="nm -g -X32_64"
|
|
-else
|
|
- arch_default=$(uname -m)
|
|
-fi
|
|
+arch_default=$(uname -p)
|
|
cpu="generic"
|
|
intrinsics="none"
|
|
|
|
@@ -5537,6 +5531,7 @@ case $target_os in
|
|
disable symver
|
|
;;
|
|
freebsd)
|
|
+ enable section_data_rel_ro
|
|
;;
|
|
bsd/os)
|
|
add_extralibs -lpoll -lgnugetopt
|
|
@@ -7018,7 +7013,7 @@ fi
|
|
|
|
if enabled x86; then
|
|
case $target_os in
|
|
- mingw32*|mingw64*|win32|win64|linux|cygwin*)
|
|
+ freebsd|mingw32*|mingw64*|win32|win64|linux|cygwin*)
|
|
;;
|
|
*)
|
|
disable ffnvcodec cuvid nvdec nvenc
|