diff --git a/c_check b/c_check index 371dbf615..872d84275 100644 --- a/c_check +++ b/c_check @@ -234,6 +234,11 @@ $linker_a = ""; $linker_L .= "-Wl,". $flags . " " } + if ($flags =~ /^\--exclude-libs/) { + $linker_L .= "-Wl,". $flags . " "; + $flags=""; + } + if ( ($flags =~ /^\-l/) && ($flags !~ /gfortranbegin/)