summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-06-14 23:27:05 +0100
committerPeter Powell <petpow@saberuk.com>2015-06-14 23:41:33 +0100
commit68211809ee3111bdc9609fbd46dc3c875fbb5ea6 (patch)
treeb6ada14d9a00f28e155baced1a0e12a3a99d1828 /configure
parent10127b6540c6c30bdb1bfa4c0d4d4afe30c2f22e (diff)
Fix mistakenly using Clang instead of GCC on older FreeBSD versions.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 103e072a5..cfda1a241 100755
--- a/configure
+++ b/configure
@@ -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
{