diff --git a/build/config-linux-gcc-debug.py b/build/config-linux-gcc-debug.py index 9c93d567..55f32973 100644 --- a/build/config-linux-gcc-debug.py +++ b/build/config-linux-gcc-debug.py @@ -31,7 +31,7 @@ pyver = os.popen("python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'") env = locals() env['PYTHON'+pyver+'INCLUDE'] = [] -env['PYTHON'+pyver+'LIB'] = ['boost_python'] +env['PYTHON'+pyver+'LIB'] = ['boost_python3' if pyver[0] == '3' else 'boost_python'] for entry in os.popen("python-config --cflags --libs").read().split(): if entry[:2] == '-I': diff --git a/build/config-linux-gcc.py b/build/config-linux-gcc.py index 2f8ce2fe..7872e6fd 100644 --- a/build/config-linux-gcc.py +++ b/build/config-linux-gcc.py @@ -31,7 +31,9 @@ pyver = os.popen("python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'") env = locals() env['PYTHON'+pyver+'INCLUDE'] = [] -env['PYTHON'+pyver+'LIB'] = ['boost_python'] +env['PYTHON'+pyver+'LIB'] = ['boost_python3' if pyver[0] == '3' else 'boost_python'] + +print(env['PYTHON'+pyver+'LIB']) for entry in os.popen("python-config --cflags --libs").read().split(): if entry[:2] == '-I':