Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2019 23:56:18 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r507608 - head/multimedia/ffmpeg
Message-ID:  <201907292356.x6TNuIca014299@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Mon Jul 29 23:56:17 2019
New Revision: 507608
URL: https://svnweb.freebsd.org/changeset/ports/507608

Log:
  multimedia: unbreak on aarch64, armv7 and 12.1 i386 after r507589 and r507592
  
  /usr/bin/ld: error: can't create dynamic relocation R_AARCH64_ABS64 against local symbol in readonly segment; recompile object files with -fPIC
  >>> defined in libavcodec/aarch64/fft_neon.o
  >>> referenced by libavcodec/aarch64/fft_neon.o:(fft_tab_neon)
  
  /usr/bin/ld: error: can't create dynamic relocation R_ARM_ABS32 against symbol: fft4_neon in readonly segment; recompile object files with -fPIC
  >>> defined in libavcodec/arm/fft_fixed_neon.o
  >>> referenced by libavcodec/arm/fft_fixed_neon.o:(fft_fixed_tab_neon)
  
  /usr/bin/ld: error: can't create dynamic relocation R_ARM_ABS32 against symbol: fft4_neon in readonly segment; recompile object files with -fPIC
  >>> defined in libavcodec/arm/fft_fixed_neon.o
  >>> referenced by libavcodec/arm/fft_fixed_neon.o:(fft_fixed_tab_neon)

Modified:
  head/multimedia/ffmpeg/Makefile   (contents, props changed)

Modified: head/multimedia/ffmpeg/Makefile
==============================================================================
--- head/multimedia/ffmpeg/Makefile	Mon Jul 29 22:20:15 2019	(r507607)
+++ head/multimedia/ffmpeg/Makefile	Mon Jul 29 23:56:17 2019	(r507608)
@@ -568,6 +568,10 @@ INSTALL_TARGET=	install-progs install-doc install-data
 DATADIR=	${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
 MAKE_ENV+=	V=1
+LDFLAGS_aarch64=-Wl,-z,notext
+LDFLAGS_armv6=	-Wl,-z,notext
+LDFLAGS_armv7=	-Wl,-z,notext
+LDFLAGS_i386=	-Wl,-z,notext
 
 CONFIGURE_ARGS+=--prefix="${PREFIX}" \
 		--mandir="${PREFIX}/man" \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907292356.x6TNuIca014299>