diff options
author | Jack Lloyd <[email protected]> | 2016-07-04 18:42:48 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-07-04 18:42:48 -0400 |
commit | 203b22d2dd59f49a2639dbd06d3db7f6ca6c75d2 (patch) | |
tree | 9c59fb6c849cc6c5d49a1999bacf6195f0a29370 /configure.py | |
parent | 5b1b69e2b6907bb30a1a310a4daf97e90b628a03 (diff) | |
parent | af0854a30485002ba534f21bc6bdca61535f3d88 (diff) |
Merge GH #523 fixes for OpenBSD compilation
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.py b/configure.py index 833aaf1aa..1d2e7f21b 100755 --- a/configure.py +++ b/configure.py @@ -1939,6 +1939,14 @@ def main(argv = None): elif options.os == 'darwin' or options.os == 'freebsd': if have_program('clang++'): options.compiler = 'clang' + elif options.os == 'openbsd': + if have_program('eg++'): + info_cc['gcc'].binary_name = 'eg++' + else: + logging.warning('Default GCC is too old; install a newer one using \'pkg_add gcc\'') + # The assembler shipping with OpenBSD 5.9 does not support avx2 + del info_cc['gcc'].isa_flags['avx2'] + options.compiler = 'gcc' else: options.compiler = 'gcc' logging.info('Guessing to use compiler %s (use --cc to set)' % ( |