]> git.sesse.net Git - vlc/commitdiff
contribs: compile x264 and live555 as PIC
authorPierre Ynard <linkfanel@yahoo.fr>
Fri, 5 Jun 2009 23:28:37 +0000 (01:28 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Fri, 5 Jun 2009 23:28:37 +0000 (01:28 +0200)
Compile x264 and live555 as PIC, as otherwise it causes linkage problems
on 64 bits

extras/contrib/src/Makefile

index 223df2667076f678fee012b7ac377d75c78220e9..9cc78b9854fd3061ca47b98e4af00a3aba0b7ad0 100644 (file)
@@ -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