changeset 603:442dede8795b libavcodec

patch by (Volker Moell <volker-ml at die-moells dot de>) creating $(prefix)/bin and $(prefix)/lib improved linking libavcodec.so -> libavcodec-$(VERSION).so ldconfig does not rise an error on not beeing root when installing
author michaelni
date Tue, 13 Aug 2002 18:51:11 +0000
parents d8d23aae4ac3
children 4344cc8033bd
files Makefile
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Aug 09 10:43:02 2002 +0000
+++ b/Makefile	Tue Aug 13 18:51:11 2002 +0000
@@ -134,9 +134,10 @@
 
 install: all
 ifeq ($(BUILD_SHARED),yes)
+	install -d $(prefix)/lib
 	install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so
-	ln -sf $(prefix)/lib/libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so
-	ldconfig
+	ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so
+	ldconfig || true
 	mkdir -p $(prefix)/include/ffmpeg
 	install -m 644 avcodec.h $(prefix)/include/ffmpeg/avcodec.h
 	install -m 644 common.h $(prefix)/include/ffmpeg/common.h