| @@ -4000,6 +4000,22 @@ case "$p1" in | |||||
| no_underscore_objs="$no_underscore_objs $misc_common_objs" | no_underscore_objs="$no_underscore_objs $misc_common_objs" | ||||
| printf 'int main(void){\n' | printf 'int main(void){\n' | ||||
| for obj in $underscore_objs; do | |||||
| [ "$obj" != "xerbla" ] && printf 'extern void %s%s%s%s();\n' \ | |||||
| "$symbolprefix" "$obj" "$bu" "$symbolsuffix" | |||||
| done | |||||
| for obj in $need_2underscore_objs; do | |||||
| printf 'extern void %s%s%s%s%s();\n' \ | |||||
| "$symbolprefix" "$obj" "$bu" "$bu" "$symbolsuffix" | |||||
| done | |||||
| for obj in $no_underscore_objs; do | |||||
| printf 'extern void %s%s%s();\n' \ | |||||
| "$symbolprefix" "$obj" "$symbolsuffix" | |||||
| done | |||||
| printf '\n' | |||||
| for obj in $underscore_objs; do | for obj in $underscore_objs; do | ||||
| [ "$obj" != "xerbla" ] && printf '%s%s%s%s();\n' \ | [ "$obj" != "xerbla" ] && printf '%s%s%s%s();\n' \ | ||||
| "$symbolprefix" "$obj" "$bu" "$symbolsuffix" | "$symbolprefix" "$obj" "$bu" "$symbolsuffix" | ||||
| @@ -3955,6 +3955,18 @@ if ($ARGV[0] eq "linktest") { | |||||
| @no_underscore_objs = (@no_underscore_objs, @misc_common_objs); | @no_underscore_objs = (@no_underscore_objs, @misc_common_objs); | ||||
| print "int main(void){\n"; | print "int main(void){\n"; | ||||
| foreach $objs (@underscore_objs) { | |||||
| print "extern void ", $symbolprefix, $objs, $bu, $symbolsuffix, "();\n" if $objs ne "xerbla"; | |||||
| } | |||||
| foreach $objs (@need_2underscore_objs) { | |||||
| print "extern void ", $symbolprefix, $objs, $bu, $bu, $symbolsuffix, "();\n"; | |||||
| } | |||||
| foreach $objs (@no_underscore_objs) { | |||||
| print "extern void ", $symbolprefix, $objs, $symbolsuffix, "();\n"; | |||||
| } | |||||
| foreach $objs (@underscore_objs) { | foreach $objs (@underscore_objs) { | ||||
| print $symbolprefix, $objs, $bu, $symbolsuffix, "();\n" if $objs ne "xerbla"; | print $symbolprefix, $objs, $bu, $symbolsuffix, "();\n" if $objs ne "xerbla"; | ||||
| } | } | ||||