From 60c2f7a3d0ad55ca78e0df7034f9d9c4926a3ff8 Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Sun, 3 Jul 2016 00:36:15 +0300 Subject: Adjust GCC binary name on OpenBSD The binary name for a sufficiently new GCC is 'eg++' on OpenBSD --- configure.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.py b/configure.py index 324d84079..f61ea9e57 100755 --- a/configure.py +++ b/configure.py @@ -1922,6 +1922,12 @@ def main(argv = None): elif options.os == 'darwin': 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\'') + options.compiler = 'gcc' else: options.compiler = 'gcc' logging.info('Guessing to use compiler %s (use --cc to set)' % ( -- cgit v1.2.3