From d982f5494153f254e3d454db9cd0021c9f73b3d0 Mon Sep 17 00:00:00 2001 From: Daniel Standage Date: Wed, 20 Feb 2019 19:40:02 -0500 Subject: [PATCH] Fix build for OS X --- setup.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index ae5fe34b79..86291415a6 100755 --- a/setup.py +++ b/setup.py @@ -168,15 +168,12 @@ def build_dir(): "MurmurHash3"]) # Don't forget to update lib/Makefile with these flags! -EXTRA_COMPILE_ARGS = ['-O3', '-std=c++11', '-pedantic', - '-fno-omit-frame-pointer'] -EXTRA_LINK_ARGS = ['-fno-omit-frame-pointer'] +EXTRA_COMPILE_ARGS = ['-O3', '-std=c++11'] +EXTRA_LINK_ARGS = [] if sys.platform == 'darwin': - # force 64bit only builds - EXTRA_COMPILE_ARGS.extend(['-arch', 'x86_64', '-mmacosx-version-min=10.7', - '-stdlib=libc++']) - EXTRA_LINK_ARGS.append('-mmacosx-version-min=10.7') + EXTRA_COMPILE_ARGS.extend(['-arch', 'x86_64', '-mmacosx-version-min=10.9']) + EXTRA_LINK_ARGS.append('-mmacosx-version-min=10.9') if check_for_openmp(): EXTRA_COMPILE_ARGS.extend(['-fopenmp'])