From 71ea4a19550d96c4b4dfee0f56d45d5627e45672 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 4 Feb 2016 15:06:41 -0800 Subject: [PATCH 1/2] Make binary compatibility not the default --- binding.gyp | 6 +- include/grpc/impl/codegen/port_platform.h | 8 +++ setup.py | 3 +- src/core/support/env_linux.c | 5 ++ src/core/support/time_posix.c | 2 +- .../grpcio/grpc/_cython/imports.generated.c | 36 +++++------- .../grpcio/grpc/_cython/imports.generated.h | 58 +++++++++---------- src/ruby/ext/grpc/extconf.rb | 1 + templates/binding.gyp.template | 6 +- tools/run_tests/artifact_targets.py | 3 +- 10 files changed, 68 insertions(+), 60 deletions(-) diff --git a/binding.gyp b/binding.gyp index e4946135b0d..f6893d2c896 100644 --- a/binding.gyp +++ b/binding.gyp @@ -55,7 +55,8 @@ 'UNICODE', '_UNICODE', 'NOMINMAX', - 'OPENSSL_NO_ASM' + 'OPENSSL_NO_ASM', + 'GPR_BACKWARDS_COMPATIBILITY_MODE' ], "msvs_settings": { 'VCCLCompilerTool': { @@ -78,7 +79,8 @@ # supports ALPN. The target is "[major].[minor].[patch]". We split by # periods and take the first field to get the major version. 'defines': [ - 'TSI_OPENSSL_ALPN_SUPPORT= Date: Fri, 12 Feb 2016 12:19:12 -0800 Subject: [PATCH 2/2] Fix Python --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index b370be68125..69e59e3aff6 100644 --- a/setup.py +++ b/setup.py @@ -97,6 +97,7 @@ if not "win32" in sys.platform: DEFINE_MACROS = (('OPENSSL_NO_ASM', 1), ('_WIN32_WINNT', 0x600), ('GPR_BACKWARDS_COMPATIBILITY_MODE', 1),) LDFLAGS = () +CFLAGS = () if "linux" in sys.platform: LDFLAGS += ('-Wl,-wrap,memcpy',) if "linux" in sys.platform or "darwin" in sys.platform: