* ld-elfcomm/elfcomm.exp: Compile with -fcommon.
This commit is contained in:
parent
0522abc9eb
commit
698be22afe
|
@ -1,3 +1,7 @@
|
|||
2009-10-30 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* ld-elfcomm/elfcomm.exp: Compile with -fcommon.
|
||||
|
||||
2009-10-28 Johan Kristell <johankri@axis.com>
|
||||
|
||||
* ld-cris/dso12-pltdis.d: New test.
|
||||
|
|
|
@ -176,9 +176,10 @@ proc assembler_generates_commons {} {
|
|||
return 1
|
||||
}
|
||||
|
||||
|
||||
if { ![ld_compile "$CC $CFLAGS" $srcdir/$subdir/common1a.c tmpdir/common1a.o]
|
||||
|| ![ld_compile "$CC $CFLAGS" $srcdir/$subdir/common1b.c tmpdir/common1b.o] } {
|
||||
# Explicitly use "-fcommon" so that even if $CFLAGS includes
|
||||
# "-fno-common", these tests are compiled as expected.
|
||||
if { ![ld_compile "$CC $CFLAGS -fcommon" $srcdir/$subdir/common1a.c tmpdir/common1a.o]
|
||||
|| ![ld_compile "$CC $CFLAGS -fcommon" $srcdir/$subdir/common1b.c tmpdir/common1b.o] } {
|
||||
unresolved $test1
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue