ports/multimedia/ffmpeg/files/patch-configure
Robert Nagy fef6b65345 multimedia/ffmpeg*: enable support for the .data.rel.ro section
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
2023-08-29 14:59:18 +02:00

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