[vlc-devel] commit: contribs: compile x264 and live555 as PIC (Pierre Ynard )

git version control git at videolan.org
Sat Jun 6 01:35:55 CEST 2009


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Jun  6 01:28:37 2009 +0200| [2818b351e6d68dc03296546a1c5f4191e539f02a] | committer: Pierre Ynard 

contribs: compile x264 and live555 as PIC

Compile x264 and live555 as PIC, as otherwise it causes linkage problems
on 64 bits

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2818b351e6d68dc03296546a1c5f4191e539f02a
---

 extras/contrib/src/Makefile |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 223df26..9cc78b9 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -166,6 +166,10 @@ ifdef HAVE_AMR
 FFMPEGCONF+= --enable-libamr-nb --enable-libamr-wb --enable-nonfree
 endif
 
+ifdef HAVE_LINUX
+X264CONF += --enable-pic
+endif
+
 DATE=`date +%Y-%m-%d`
 
 # ***************************************************************************
@@ -1292,6 +1296,7 @@ ifdef HAVE_BIGENDIAN
 	(cd $<; ./genMakefiles armeb-uclibc && make $(HOSTCC))
 endif
 else
+	(cd $<; sed -e 's%-D_FILE_OFFSET_BITS=64%-D_FILE_OFFSET_BITS=64\ -fPIC\ -DPIC%' -i.orig config.linux)
 	(cd $<; ./genMakefiles linux && make $(HOSTCC))
 endif
 endif




More information about the vlc-devel mailing list