From 39040fb9a083e96d63cfb241527dd7f7891a491e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= Date: Wed, 8 Jun 2016 18:42:46 +0200 Subject: [PATCH] Allow node-gyp configure --sharp-cxx11=1 (#456) Can also be set in .npmrc. Closes: #442 --- binding.gyp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binding.gyp b/binding.gyp index fbdd6c4b..695fb5de 100644 --- a/binding.gyp +++ b/binding.gyp @@ -51,6 +51,7 @@ ], # Nested variables "pattern" borrowed from http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi 'variables': { + 'sharp-cxx11%': '0', 'variables': { 'variables': { 'conditions': [ @@ -92,7 +93,7 @@ 'src/utilities.cc' ], 'defines': [ - '_GLIBCXX_USE_CXX11_ABI=0', + '_GLIBCXX_USE_CXX11_ABI=<(sharp-cxx11)', '_ALLOW_KEYWORD_MACROS' ], 'include_dirs': [