1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

disabling compilation of .so if its not needed, gcc 3.1 seems to have problems with it

Originally committed as revision 7995 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
Michael Niedermayer 2002-10-31 10:21:44 +00:00
parent f9745d55e6
commit 1609f6680c

View File

@ -2,8 +2,10 @@
include ../config.mak include ../config.mak
SWSLIB = libswscale.a SWSLIB = libswscale.a
ifeq ($(SHARED_PP),yes)
SPPLIB = libpostproc.so SPPLIB = libpostproc.so
SPPVERSION = 0.0.1 SPPVERSION = 0.0.1
endif
PPLIB = libpostproc.a PPLIB = libpostproc.a
SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c SWSSRCS=swscale.c rgb2rgb.c yuv2rgb.c
@ -41,13 +43,15 @@ depend:
cs_test: $(CS_TEST_OBJS) cs_test: $(CS_TEST_OBJS)
$(CC) $(CS_TEST_OBJS) -o cs_test $(CC) $(CS_TEST_OBJS) -o cs_test
ifeq ($(SHARED_PP),yes)
postprocess_pic.o: postprocess.c postprocess_pic.o: postprocess.c
$(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $< $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $<
$(SPPLIB): $(SPPOBJS) $(SPPLIB): $(SPPOBJS)
$(CC) -shared -Wl,-soname,$(SPPLIB).0 \ $(CC) -shared -Wl,-soname,$(SPPLIB).0 \
-o $(SPPLIB) $(SPPOBJS) -o $(SPPLIB) $(SPPOBJS)
endif
$(PPLIB): $(PPOBJS) $(PPLIB): $(PPOBJS)
$(AR) r $(PPLIB) $(PPOBJS) $(AR) r $(PPLIB) $(PPOBJS)