aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ffmpeg/ffmpeg/soname.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/ffmpeg/ffmpeg/soname.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
downloadopenembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.gz
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.bz2
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.zip
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/ffmpeg/ffmpeg/soname.patch')
-rw-r--r--packages/ffmpeg/ffmpeg/soname.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/packages/ffmpeg/ffmpeg/soname.patch b/packages/ffmpeg/ffmpeg/soname.patch
index e69de29bb2..6d01f922af 100644
--- a/packages/ffmpeg/ffmpeg/soname.patch
+++ b/packages/ffmpeg/ffmpeg/soname.patch
@@ -0,0 +1,65 @@
+--- ffmpeg/libavcodec/Makefile.orig 2005-02-10 18:11:57.000000000 +0100
++++ ffmpeg/libavcodec/Makefile 2005-02-10 18:15:36.000000000 +0100
+@@ -7,7 +7,7 @@
+ VPATH=$(SRC_PATH)/libavcodec
+
+ # NOTE: -I.. is needed to include config.h
+-CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
++CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -fPIC -DPIC
+
+ OBJS= bitstream.o utils.o mem.o allcodecs.o \
+ mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\
+@@ -222,7 +222,7 @@
+ $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
+ -lib /machine:i386 /def:$(@:.dll=.def)
+ else
+- $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(LDFLAGS)
++ $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(LDFLAGS) -Wl,-soname -Wl,libavcodec.so.0
+ endif
+
+ dsputil.o: dsputil.c dsputil.h
+@@ -294,8 +294,9 @@
+ install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
+ else
+ install -d $(prefix)/lib
+- install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so
+- ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so
++ install -m 755 $(SLIB) $(prefix)/lib/libavcodec.so.0.4.9
++ ln -sf libavcodec.so.0.4.9 $(prefix)/lib/libavcodec.so.0
++ ln -sf libavcodec.so.0.4.9 $(prefix)/lib/libavcodec.so
+ ldconfig || true
+ endif
+ ifeq ($(CONFIG_PP),yes)
+
+--- ffmpeg/libavformat/Makefile.orig 2005-02-10 18:15:50.000000000 +0100
++++ ffmpeg/libavformat/Makefile 2005-02-10 18:18:23.000000000 +0100
+@@ -6,7 +6,7 @@
+
+ VPATH=$(SRC_PATH)/libavformat
+
+-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
++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 -fPIC -DPIC
+
+ OBJS= utils.o cutils.o os_support.o allformats.o
+ PPOBJS=
+@@ -104,7 +104,7 @@
+ $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(VPATH)/../libavcodec/avcodec.dll
+ -lib /machine:i386 /def:$(@:.dll=.def)
+ else
+- $(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS)
++ $(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) -Wl,-soname -Wl,libavformat.so.0
+ endif
+
+ depend: $(SRCS)
+@@ -116,8 +116,9 @@
+ install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
+ else
+ install -d $(prefix)/lib
+- install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so
+- ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so
++ install -m 755 $(SLIB) $(prefix)/lib/libavformat.so.0.4.9
++ ln -sf libavformat.so.0.4.9 $(prefix)/lib/libavformat.so.0
++ ln -sf libavformat.so.0.4.9 $(prefix)/lib/libavformat.so
+ ldconfig || true
+ endif
+ else