From: Lubomir Rintel <lkundrak@v3.sk>
Subject: [PATCH] Allow building with gcc-4.6
same for gcc-4.7
|
a
|
b
|
check_gcc()
|
| 413 | 413 | elif [ $cc_maj -lt 3 \ |
| 414 | 414 | -o \( $cc_maj -eq 3 -a $cc_min -lt 2 \) \ |
| 415 | 415 | -o \( $cc_maj -eq 4 -a $cc_min -lt 1 -a "$OS" != "darwin" \) \ |
| 416 | | -o \( $cc_maj -eq 4 -a $cc_min -gt 6 \) \ |
| | 416 | -o \( $cc_maj -eq 4 -a $cc_min -gt 7 \) \ |
| 417 | 417 | -o $cc_maj -gt 4 ]; then |
| 418 | | log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<7" |
| | 418 | log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<8" |
| 419 | 419 | fail really |
| 420 | 420 | else |
| 421 | 421 | log_success "found version $cc_ver" |