[Ffmpeg-devel] Re: ffmpeg on OS X

Patrice Bensoussan patrice.bensoussan
Thu Oct 20 23:03:59 CEST 2005


Hello,

Here is a new patch which should be safe to apply...
(Basically same thing as first patch, but kept -single_module option)

Can someone apply it? Thanks !
Patrice

Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.212
diff -u -p -r1.212 configure
--- configure   19 Oct 2005 14:37:15 -0000      1.212
+++ configure   20 Oct 2005 21:00:50 -0000
@@ -329,7 +329,7 @@ v4l="no"
audio_oss="no"
dv1394="no"
ffserver="no"
-SHFLAGS="-dynamiclib -Wl,-single_module,-undefined,dynamic_lookup"
+SHFLAGS="-dynamiclib -Wl,-single_module"
extralibs=""
darwin="yes"
strip="strip -x"
@@ -983,7 +983,7 @@ int main( void ) { return (lrintf(3.999f
EOF
have_lrintf="no"
-if $cc $extralibs -o $TMPE $TMPC 2> /dev/null ; then
+if $cc $CFLAGS $LDFLAGS $extralibs -o $TMPE $TMPC 2> /dev/null ; then
    have_lrintf="yes"
    # allanc at chickenandporn.com: cannot execute cross-compiled
    # code on the host.  Only execute if not cross-compiling.
Index: vhook/Makefile
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/vhook/Makefile,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile
--- vhook/Makefile      1 Oct 2005 14:21:34 -0000       1.24
+++ vhook/Makefile      20 Oct 2005 21:00:50 -0000
@@ -5,7 +5,7 @@ VPATH=$(SRC_PATH)/vhook
CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat  
-I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
ifeq ($(CONFIG_DARWIN),yes)
-       SHFLAGS += -flat_namespace
+       SHFLAGS += -flat_namespace -undefined suppress
endif
HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)





More information about the ffmpeg-devel mailing list