diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-06-15 22:00:36 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-06-15 22:00:36 +0200 |
commit | baccf1eba4f3f49fea0a6eee58474c599e0cf477 (patch) | |
tree | 9bea5c7ca35cc3cf0c29709a0e23295e6a134b2f | |
parent | 5d8fd0cf2c4053ef7aace0c6a41c326758237093 (diff) | |
parent | 68211809ee3111bdc9609fbd46dc3c875fbb5ea6 (diff) |
Merge pull request #1061 from SaberUK/insp20+fix-fbsd
[2.0] 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 { |