Merge automatic addition of -fno-common to CFLAGS for Windows from trunk.
authorDiego Biurrun <diego@biurrun.de>
Sun, 19 Apr 2009 13:22:08 +0000 (13:22 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 19 Apr 2009 13:22:08 +0000 (13:22 +0000)
Originally committed as revision 18619 to svn://svn.ffmpeg.org/ffmpeg/branches/0.5

configure

index 281ce24..c77ee82 100755 (executable)
--- a/configure
+++ b/configure
@@ -1572,6 +1572,7 @@ case $target_os in
         SHFLAGS='-shared -Wl,--output-def,$$(@:$(SLIBSUF)=.def) -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base'
         objformat="win32"
         enable dos_paths
+        check_cflags -fno-common
         if ! enabled x86_64; then
             check_cpp_condition _mingw.h "(__MINGW32_MAJOR_VERSION > 3) || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" ||
                 die "ERROR: MinGW runtime version must be >= 3.15."
@@ -1596,6 +1597,7 @@ case $target_os in
         SHFLAGS='-shared -Wl,--enable-auto-image-base'
         objformat="win32"
         enable dos_paths
+        check_cflags -fno-common
         ;;
     *-dos|freedos|opendos)
         disable ffplay ffserver vhook