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>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------010504020909040703010609
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
-----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-----
--------------010504020909040703010609
Content-Type: text/plain;
name="multimedia_gstreamer-ffmpeg.patch.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="multimedia_gstreamer-ffmpeg.patch.txt"
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}|' \
--------------010504020909040703010609
Content-Type: application/octet-stream;
name="multimedia_gstreamer-ffmpeg.patch.txt.sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="multimedia_gstreamer-ffmpeg.patch.txt.sig"
iQEcBAABAgAGBQJNeDykAAoJEPXPYrMgexuh34UH/33Cr+96M2HSiAOXLnKIiDpF7RGbjMxJ
39YKrqC4LPndK3ExTARz9P27gijnduZN6omdvJjzgPqBlpMJzIYhFzW8dkUcVOjiTbQs1XWp
R4XFhSr6X2BCI1lEzDSwh1qBtDQdVXlH5d2YATm2NIMvEWBm7kbsm/kIeRPsD6E/DSzFnq3w
T/QyjGJd2dAkCQRToj12bmq7SJUecDpvqBpyf3scBvYNHGOWd4wrm3MpZB9jZKwy0oBLXCRb
L8bCjtaEEpncBv0raeDsTcbhoxE5mJY0qXqi0VkjqOk0hIXAZCK0BRke93q4RiDDrEHpDOrW
s3xE4BmQnbNHciRTmXcpbxM=
--------------010504020909040703010609--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D783CA4.3020703>
