Ticket #5618: gcc_version_detection.patch

File gcc_version_detection.patch, 448 bytes (added by mythdev@…, 12 years ago)

Better patch (error suppression), based on http://vbox.innotek.de/changeset/8461

  • configure

     
    26222622check_ldflags $LDLATEFLAGS
    26232623
    26242624# GCC version
    2625 gcc_version=$($cc -v 2>&1 | grep "^gcc version" | cut -s -d' ' -f 3)
     2625gcc_version=$($cc -dumpversion 2>/dev/null)
    26262626GCC_MAJOR=$(echo ${gcc_version} | cut -s -d'.' -f1)
    26272627GCC_MINOR=$(echo ${gcc_version} | cut -s -d'.' -f2)