--- setup.py.old 2018-05-24 19:42:16.000000000 -0700 +++ setup.py 2018-05-24 19:43:21.000000000 -0700 @@ -204,6 +204,8 @@ v, _, _ = platform.mac_ver() if v: extra_compile_args.append('-std=c++11') + extra_compile_args.append('@@MACPORTS_STDLIB@@') + extra_compile_args.append('@@MACPORTS_EXTRAARG@@') elif os.getenv('KOKORO_BUILD_NUMBER') or os.getenv('KOKORO_BUILD_ID'): extra_compile_args.append('-std=c++11')