summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-06-15 22:00:36 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-06-15 22:00:36 +0200
commitbaccf1eba4f3f49fea0a6eee58474c599e0cf477 (patch)
tree9bea5c7ca35cc3cf0c29709a0e23295e6a134b2f /configure
parent5d8fd0cf2c4053ef7aace0c6a41c326758237093 (diff)
parent68211809ee3111bdc9609fbd46dc3c875fbb5ea6 (diff)
Merge pull request #1061 from SaberUK/insp20+fix-fbsd
[2.0] 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 68d03a29c..76ef8ce36 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
{