test whether linker supports --warn-common
authorMåns Rullgård <mans@mansr.com>
Fri, 15 Jun 2007 20:43:58 +0000 (20:43 +0000)
committerMåns Rullgård <mans@mansr.com>
Fri, 15 Jun 2007 20:43:58 +0000 (20:43 +0000)
Originally committed as revision 9328 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index c397be7..ac5effc 100755 (executable)
--- a/configure
+++ b/configure
@@ -888,7 +888,7 @@ thread_type="no"
 SHFLAGS='-shared -Wl,-soname,$@'
 VHOOKSHFLAGS='$(SHFLAGS)'
 LIBOBJFLAGS=""
-FFLDFLAGS=-Wl,--warn-common
+FFLDFLAGS=
 LDLATEFLAGS='-Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil'
 FFSERVERLDFLAGS=-Wl,-E
 LDCONFIG="ldconfig"
@@ -1792,6 +1792,7 @@ check_cflags -Wno-pointer-sign
 enabled extra_warnings && check_cflags -Winline
 
 # add some linker flags
+check_ldflags -Wl,--warn-common
 check_ldflags $LDLATEFLAGS
 
 # not all compilers support -Os