aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-07-04 18:42:48 -0400
committerJack Lloyd <[email protected]>2016-07-04 18:42:48 -0400
commit203b22d2dd59f49a2639dbd06d3db7f6ca6c75d2 (patch)
tree9c59fb6c849cc6c5d49a1999bacf6195f0a29370 /configure.py
parent5b1b69e2b6907bb30a1a310a4daf97e90b628a03 (diff)
parentaf0854a30485002ba534f21bc6bdca61535f3d88 (diff)
Merge GH #523 fixes for OpenBSD compilation
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py8
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)' % (