ffmpeg4: Enable section_data_rel_ro on NetBSD
Seems to resolve text relocation issues on aarch64. Thanks to an upstream commit fixing the exact problem we're having (on Linux...) from 2014 for the hitn... Bump PKGREVISION.
This commit is contained in:
parent
233c82e5f9
commit
7aafcb4f4c
2 changed files with 11 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.32 2020/06/26 03:11:40 jklos Exp $
|
||||
# $NetBSD: Makefile,v 1.33 2020/06/26 21:02:27 nia Exp $
|
||||
|
||||
PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg4/}
|
||||
PKGREVISION= 1
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://ffmpeg.org/
|
||||
COMMENT= Decoding, encoding and streaming software (v4.x)
|
||||
|
@ -50,10 +51,6 @@ CFLAGS+= -mstackrealign -mpreferred-stack-boundary=4
|
|||
NOT_PAX_MPROTECT_SAFE+= bin/ffmpeg4
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "aarch64"
|
||||
NOT_PAX_MPROTECT_SAFE+= bin/ffmpeg4
|
||||
.endif
|
||||
|
||||
# configure script uses uname -m to detect arch, as opposed to uname -p in
|
||||
# GNU/configure. Unable to detect NetBSD/macppc hosts correctly.
|
||||
CONFIGURE_ARGS+= --arch=${MACHINE_ARCH}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
$NetBSD: patch-configure,v 1.5 2020/06/16 16:54:45 adam Exp $
|
||||
$NetBSD: patch-configure,v 1.6 2020/06/26 21:02:27 nia Exp $
|
||||
|
||||
Sun audio support.
|
||||
|
||||
Enable PIC on NetBSD, even on i386 to avoid text relocations.
|
||||
Enable PIC and section_data_rel_ro on NetBSD, even on i386,
|
||||
to avoid text relocations.
|
||||
|
||||
Do not use 'rsync'.
|
||||
|
||||
Portability fixes.
|
||||
|
@ -46,15 +48,16 @@ Portability fixes.
|
|||
expensive_optimization_flag=""
|
||||
else
|
||||
expensive_optimization_flag="-fno-expensive-optimizations"
|
||||
@@ -5330,6 +5332,7 @@ case $target_os in
|
||||
@@ -5330,6 +5332,8 @@ case $target_os in
|
||||
;;
|
||||
netbsd)
|
||||
disable symver
|
||||
+ enable section_data_rel_ro
|
||||
+ enable pic
|
||||
oss_indev_extralibs="-lossaudio"
|
||||
oss_outdev_extralibs="-lossaudio"
|
||||
enabled gcc || check_ldflags -Wl,-zmuldefs
|
||||
@@ -5728,10 +5731,13 @@ done
|
||||
@@ -5728,10 +5732,13 @@ done
|
||||
check_cc pragma_deprecated "" '_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")'
|
||||
|
||||
# The global variable ensures the bits appear unchanged in the object file.
|
||||
|
@ -71,7 +74,7 @@ Portability fixes.
|
|||
|
||||
check_cc const_nan math.h "struct { double d; } static const bar[] = { { NAN } }"
|
||||
|
||||
@@ -6114,6 +6120,7 @@ check_headers malloc.h
|
||||
@@ -6114,6 +6121,7 @@ check_headers malloc.h
|
||||
check_headers mftransform.h
|
||||
check_headers net/udplite.h
|
||||
check_headers poll.h
|
||||
|
@ -79,7 +82,7 @@ Portability fixes.
|
|||
check_headers sys/param.h
|
||||
check_headers sys/resource.h
|
||||
check_headers sys/select.h
|
||||
@@ -6537,7 +6544,6 @@ enabled makeinfo \
|
||||
@@ -6537,7 +6545,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
|
||||
|
|
Loading…
Reference in a new issue