Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > by-pkgid > df25c70be0d44b1259046a97fd9981fe > files > 1

gimp2-gap-2.2.1-1mdv2007.0.src.rpm

--- ffmpeg/libavcodec/Makefile.pic	2005-04-03 07:02:08.000000000 +0200
+++ ffmpeg/libavcodec/Makefile	2006-05-30 11:00:05.000000000 +0200
@@ -208,6 +208,7 @@
 LIB= $(LIBPREF)avcodec$(LIBSUF)
 ifeq ($(BUILD_SHARED),yes)
 SLIB= $(SLIBPREF)avcodec$(SLIBSUF)
+CFLAGS+=$(PIC)
 endif
 TESTS= imgresample-test dct-test motion-test fft-test
 
--- ffmpeg/libavformat/Makefile.pic	2005-03-16 20:11:58.000000000 +0100
+++ ffmpeg/libavformat/Makefile	2006-05-30 10:56:56.000000000 +0200
@@ -8,6 +8,10 @@
 
 CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
 
+ifeq ($(BUILD_SHARED),yes)
+CFLAGS+=$(PIC)
+endif
+
 OBJS= utils.o cutils.o os_support.o allformats.o
 PPOBJS=
 
--- ffmpeg/configure.pic	2005-03-16 20:11:57.000000000 +0100
+++ ffmpeg/configure	2006-05-30 10:56:57.000000000 +0200
@@ -1296,7 +1296,10 @@
 fi
 if test "$lshared" = "yes" ; then
   echo "BUILD_SHARED=yes" >> config.mak
-  echo "PIC=-fPIC" >> config.mak
+  # it can work without PIC on x86
+  if test "$cpu" != "x86"; then
+    echo "PIC=-fPIC" >> config.mak
+  fi
 fi
 echo "EXTRALIBS=$extralibs" >> config.mak
 version=`grep '#define FFMPEG_VERSION ' "$source_path/libavcodec/avcodec.h" |