patch to make multimedia/gstreamer-ffmpeg build on -CURRENT with new binutils 2.17

Steve Wills swills at FreeBSD.org
Thu Mar 10 03:26:39 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Does anyone have opinions on the attached patch to
multimedia/gstreamer-ffmpeg? It helps gstreamer build with the newer
binutils. The patch just disables the assembly, so it may make things
slower. Without the patch, the build fails for me with:

/usr/bin/ld:
../../gst-libs/ext/ffmpeg/libavcodec/libavcodec.a(dsputil_mmx.o):
relocation R_X86_64_PC32 against `ff_pw_20' can not be used when making
a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

I've tried enabling -fpic and -fPIC throughout, but that didn't seem to
help. Also, I find that multimedia/ffmpeg doesn't have the same problem.

Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iQEcBAEBAgAGBQJNeDykAAoJEPXPYrMgexuhh8MH/R9l+bPPLnRfSf+OsBlVybJI
eTsccLlPQuDSIGPFh9C/uqwrghHAoBsJJymJBKTUz99wrf/Izi2woyWdeE9FfUTO
WOmCdxWo1mxEhLRDrRthkBqzBMA3OEy7dY80Mb5wZnNyOgbeey94T9QibixPXQ5s
UU7EGHqp1xf9jSDPtX8zEt5B4eu0hzz9i5I30O4/oUfn0MQQZY1eKKjHReo3m6Zf
YH4RuX4CK+LEAEeq7AafOXMtIJc/Nhev6QKROBM/pkmxWJG2rkJeL1MxYulDZw1E
ZukEELNd6qTQtryszGWMlHdmIVD6YaxZ2jfiyXAbwYGB1AiaFzgrcnx8VGaU8+0=
=G4wy
-----END PGP SIGNATURE-----
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/gstreamer-ffmpeg/Makefile,v
retrieving revision 1.38
diff -u -r1.38 Makefile
--- Makefile	28 Jul 2010 18:13:19 -0000	1.38
+++ Makefile	8 Mar 2011 21:04:29 -0000
@@ -40,6 +40,10 @@
 
 .include <bsd.port.pre.mk>
 
+.if ${OSVERSION} >= 900033
+CONFIGURE_ARGS=	"--with-ffmpeg-extra-configure=--cc=${CC} --disable-asm"	
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e \
 		's|make|${GMAKE}|' \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multimedia_gstreamer-ffmpeg.patch.txt.sig
Type: application/octet-stream
Size: 287 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20110310/2ee66cf2/multimedia_gstreamer-ffmpeg.patch.txt.obj


More information about the freebsd-multimedia mailing list