7 foreach flags [list {} {-static -DSTATIC} {-O2} {-O3}] {
8 foreach srcfile [lsort [glob -nocomplain ${srcdir}/libmudflap.cth/*.c]] {
9 set bsrc [file tail $srcfile]
10 setenv MUDFLAP_OPTIONS "-viol-segv"
11 if {$libmudflapth} then {
12 # --noinhibit-exec works around a ld problem that causes
13 # "Dwarf Error: Invalid or unhandled FORM value: 14"
14 # to fail builds unnecessarily.
15 dg-runtest $srcfile $flags "-fmudflapth -Wl,--noinhibit-exec"
17 if {$flags != ""} {set f " ($flags)"} {set f ""}
18 untested "libmudflap.cth/$bsrc$f"