diff options
author | Víctor Paesa <wzrlpy@arsystel.com> | 2006-09-13 22:04:40 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-09-13 22:04:40 +0000 |
commit | fbb9d1043d775b1ba2524a7f03d05af5b3103cd1 (patch) | |
tree | 39331aeb9ca0c937d002b9ebb3cf9f648172aeee | |
parent | 1839e854e578db14c96365c484f419f569a5954d (diff) | |
download | ffmpeg-fbb9d1043d775b1ba2524a7f03d05af5b3103cd1.tar.gz |
Fix vhook build on Cygwin, shared builds only.
patch by Víctor Paesa, wzrlpy arsystel com
Originally committed as revision 6247 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 12 | ||||
-rw-r--r-- | vhook/Makefile | 2 |
2 files changed, 12 insertions, 2 deletions
@@ -604,7 +604,8 @@ v4l="no" v4l2="no" audio_oss="yes" dv1394="no" -vhook="no" +VHOOKSHFLAGS="-shared -L../libavformat -L../libavcodec -L../libavutil" +VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)' extralibs="" EXESUF=".exe" SLIBPREF="cyg" @@ -1375,6 +1376,14 @@ if test "$vhook" = "yes" -o "$a52bin" = "yes" -o "$faadbin" = "yes"; then add_extralibs $ldl fi +if test "$targetos" = "CYGWIN" -a "$lstatic" = "yes" ; then + vhook="no" + echo + echo "At the moment vhooks don't work on Cygwin static builds." + echo "Patches welcome." + echo +fi + if enabled vhook; then check_ldflags -rdynamic check_ldflags -export-dynamic @@ -1635,6 +1644,7 @@ echo "LDCONFIG=$LDCONFIG" >> config.mak echo "FFSERVERLDFLAGS=$FFSERVERLDFLAGS" >> config.mak echo "SHFLAGS=$SHFLAGS" >> config.mak echo "VHOOKSHFLAGS=$VHOOKSHFLAGS" >> config.mak +echo "VHOOKLIBS=$VHOOKLIBS" >> config.mak echo "LIBOBJFLAGS=$LIBOBJFLAGS" >> config.mak echo "BUILD_STATIC=$lstatic" >> config.mak echo "BUILDSUF=$BUILDSUF" >> config.mak diff --git a/vhook/Makefile b/vhook/Makefile index 255a2c6fed..d336d0445f 100644 --- a/vhook/Makefile +++ b/vhook/Makefile @@ -36,7 +36,7 @@ uninstall: -rmdir "$(shlibdir)/vhook/" %$(SLIBSUF): %.o - $(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(LIBS_$@) + $(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$@) clean: rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll |