Date: Wed, 09 Mar 2011 21:51:16 -0500 From: Steve Wills <swills@FreeBSD.org> To: freebsd-multimedia@FreeBSD.org Subject: patch to make multimedia/gstreamer-ffmpeg build on -CURRENT with new binutils 2.17 Message-ID: <4D783CA4.3020703@FreeBSD.org>
index | next in thread | raw e-mail
[-- Attachment #1 --]
-----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-----
[-- Attachment #2 --]
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}|' \
[-- Attachment #3 --]
Mx<