This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use also $ccflags, not just $ldflags, when testing for gccness.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 2 Mar 2001 23:31:41 +0000 (23:31 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 2 Mar 2001 23:31:41 +0000 (23:31 +0000)
p4raw-id: //depot/metaconfig@8994

U/perl/gccvers.U

index ebdf07b..dfa011e 100644 (file)
@@ -44,7 +44,7 @@ int main() {
        exit(0);
 }
 EOM
-if $cc -o gccvers $ldflags gccvers.c; then
+if $cc -o gccvers $ccflags $ldflags gccvers.c; then
        gccversion=`./gccvers`
        case "$gccversion" in
        '') echo "You are not using GNU cc." ;;