link to ws2_32.dll only if networking is enabled
authorAlex Beregszaszi <alex@rtfs.hu>
Tue, 15 May 2007 14:46:59 +0000 (14:46 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Tue, 15 May 2007 14:46:59 +0000 (14:46 +0000)
Originally committed as revision 9028 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 26227ff..c9bbdc8 100755 (executable)
--- a/configure
+++ b/configure
@@ -1181,7 +1181,7 @@ EOF
     SLIB_EXTRA_CMD="-lib /machine:i386 /def:\$(@:${SLIBSUF}=.def)"
     SLIB_INSTALL_EXTRA_CMD="-install -m 644 \$(SLIBNAME_WITH_MAJOR:\$(SLIBSUF)=.lib) \"\$(shlibdir)/\$(SLIBNAME_WITH_MAJOR:\$(SLIBSUF)=.lib)\""
     SHFLAGS="-shared -Wl,--output-def,\$(@:${SLIBSUF}=.def),--out-implib,lib\$(SLIBNAME:\$(SLIBSUF)=.dll.a) -Wl,--enable-runtime-pseudo-reloc"
     SLIB_EXTRA_CMD="-lib /machine:i386 /def:\$(@:${SLIBSUF}=.def)"
     SLIB_INSTALL_EXTRA_CMD="-install -m 644 \$(SLIBNAME_WITH_MAJOR:\$(SLIBSUF)=.lib) \"\$(shlibdir)/\$(SLIBNAME_WITH_MAJOR:\$(SLIBSUF)=.lib)\""
     SHFLAGS="-shared -Wl,--output-def,\$(@:${SLIBSUF}=.def),--out-implib,lib\$(SLIBNAME:\$(SLIBSUF)=.dll.a) -Wl,--enable-runtime-pseudo-reloc"
-    add_extralibs -lws2_32
+    enabled network && add_extralibs -lws2_32
     ;;
   cygwin*)
     targetos=cygwin
     ;;
   cygwin*)
     targetos=cygwin