aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAoek <pr@aoek.com>2021-07-18 15:14:44 +0000
committerMikael Urankar <mikael@FreeBSD.org>2021-07-18 15:14:44 +0000
commit905dfe641b7045ca5b92dab3f11acda51d380134 (patch)
tree10b0201e33090a12df5fcf8d5aa0d10e15be9ba4
parenteda0db32e774b8e58b831ad0b3fe4b1ecc85cd3e (diff)
downloadports-905dfe641b7045ca5b92dab3f11acda51d380134.tar.gz
ports-905dfe641b7045ca5b92dab3f11acda51d380134.zip
multimedia/gstreamer1-libav: Fix build on aarch64
Fix build on aarch64 when FFMPEG option is off. This is similar to the fix in multimedia/ffmpeg: svn port r507608 PR: 256935 Approved by: portmgr (build fix blanket)
-rw-r--r--multimedia/gstreamer1-libav/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/multimedia/gstreamer1-libav/Makefile b/multimedia/gstreamer1-libav/Makefile
index 054fbecbce60..12c5bddeca6d 100644
--- a/multimedia/gstreamer1-libav/Makefile
+++ b/multimedia/gstreamer1-libav/Makefile
@@ -35,6 +35,12 @@ FFMPEG_BUILD_DEPENDS_OFF= nasm:devel/nasm
FFMPEG_MAKE_ENV_OFF= V=1
FFMPEG_VARS_OFF+= NOPRECIOUSMAKEVARS=yes # ARCH
+.include <bsd.port.options.mk>
+
+.if empty(PORT_OPTIONS:MFFMPEG)
+LDFLAGS_aarch64= -Wl,-z,notext
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-Werror||g' \
${WRKSRC}/configure