[FFmpeg-devel] [PATCH] mipsen require compilation with -DPIC since gcc-4.3

Reinhard Tartler siretart
Sun Sep 21 16:25:03 CEST 2008


As Thiemo Seufer <ths at mips.com> points out, since gcc-4.3 requires
shared libraries to be compiled with pic. A small bug in ld prevented
linking to fail. The proposed patch below is expected to fix the
following bugs in debian:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498216
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498647
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498397

Please consider it applying it.

Index: configure
===================================================================
--- configure	(revision 15375)
+++ configure	(working copy)
@@ -1895,7 +1895,7 @@
     # LIBOBJFLAGS may have already been set in the OS configuration
     if test -z "$LIBOBJFLAGS" ; then
         case "$arch" in
-            x86_64|ia64|alpha|sparc*|power*|parisc*) LIBOBJFLAGS='$(PIC)' ;;
+            x86_64|ia64|alpha|sparc*|power*|parisc*|mips*) LIBOBJFLAGS='$(PIC)' ;;
         esac
     fi
 fi


-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 221 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080921/99d5ab95/attachment.pgp>



More information about the ffmpeg-devel mailing list