mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fix shared libpostproc build
Originally committed as revision 4272 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5cf08f2393
commit
7919d97e6d
@ -267,7 +267,7 @@ endif
|
||||
|
||||
ifeq ($(CONFIG_PP),yes)
|
||||
ifeq ($(SHARED_PP),yes)
|
||||
EXTRALIBS += -L$(VPATH)/libpostproc -lpostproc$(BUILDSUF)
|
||||
EXTRALIBS += -Llibpostproc -lpostproc$(BUILDSUF)
|
||||
else
|
||||
# LIBS += libpostproc/libpostproc.a ... should be fixed
|
||||
OBJS += libpostproc/postprocess.o
|
||||
|
@ -5,7 +5,8 @@ VPATH=$(SRC_PATH)/libavcodec/libpostproc
|
||||
|
||||
ifeq ($(SHARED_PP),yes)
|
||||
SPPLIB = $(SLIBPREF)postproc$(SLIBSUF)
|
||||
SPPVERSION = 0.0.1
|
||||
SPPMAJOR = 0
|
||||
SPPVERSION = $(SPPMAJOR).0.1
|
||||
endif
|
||||
PPLIB = $(LIBPREF)postproc$(LIBSUF)
|
||||
|
||||
@ -40,7 +41,7 @@ postprocess_pic.o: postprocess.c
|
||||
$(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
|
||||
|
||||
$(SPPLIB): $(SPPOBJS)
|
||||
$(CC) -shared -Wl,-soname,$(SPPLIB).0 \
|
||||
$(CC) -shared -Wl,-soname,$(SPPLIB).$(SPPMAJOR) \
|
||||
-o $(SPPLIB) $(SPPOBJS)
|
||||
endif
|
||||
|
||||
@ -57,11 +58,12 @@ else
|
||||
install -d $(libdir)
|
||||
install $(INSTALLSTRIP) -m 755 $(SPPLIB) $(libdir)/$(SPPLIB).$(SPPVERSION)
|
||||
ln -sf $(SPPLIB).$(SPPVERSION) $(libdir)/$(SPPLIB)
|
||||
ln -sf $(SPPLIB).$(SPPVERSION) $(libdir)/$(SPPLIB).$(SPPMAJOR)
|
||||
ldconfig || true
|
||||
endif
|
||||
endif
|
||||
mkdir -p $(prefix)/include/postproc
|
||||
install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
|
||||
install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h
|
||||
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user