[vlc-devel] [PATCH] contribs: compile x264 and live555 as PIC

Pierre Ynard linkfanel at yahoo.fr
Fri Jun 5 11:29:55 CEST 2009


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


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


Regards,

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."



More information about the vlc-devel mailing list