diff options
author | Peter Powell <petpow@saberuk.com> | 2015-06-14 23:27:05 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2015-06-14 23:41:33 +0100 |
commit | 68211809ee3111bdc9609fbd46dc3c875fbb5ea6 (patch) | |
tree | b6ada14d9a00f28e155baced1a0e12a3a99d1828 | |
parent | 10127b6540c6c30bdb1bfa4c0d4d4afe30c2f22e (diff) |
Fix mistakenly using Clang instead of GCC on older FreeBSD versions.
-rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -257,7 +257,8 @@ if ($config{OSNAME} =~ /darwin/i) elsif ($config{OSNAME} =~ /freebsd/i) { chomp(my $fbsd_version = `uname -r`); - $config{CC} = $fbsd_version ge '10.0' ? 'clang++' : 'g++'; + $fbsd_version =~ s/^(\d+\.\d+).*/$1/g; + $config{CC} = $fbsd_version >= 10.0 ? 'clang++' : 'g++'; } else { |