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

git version control git at videolan.org
Sat Jun 6 01:38:39 CEST 2009


vlc | branch: 1.0-bugfix | Pierre Ynard <linkfanel at yahoo.fr> | Sat Jun  6 01:28:37 2009 +0200| [2839bb5b1026cfb3e09576eb36bc0ee6ed472c5a] | 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=2839bb5b1026cfb3e09576eb36bc0ee6ed472c5a
---

 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 2084046..f796bcc 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -162,6 +162,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`
 
 # ***************************************************************************
@@ -1288,6 +1292,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