diff options
author | Stanley Cheung <stanleycheung@google.com> | 2016-02-24 21:35:56 -0800 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2016-02-24 21:36:21 -0800 |
commit | 80db5be7b515bc2f86c8cd2d6ce86f6aebf19f00 (patch) | |
tree | 31ef9713027582bfdc9e1b3212662b24e369e6e4 /templates/config.m4.template | |
parent | c333cc9305f92434af132e7a3c328467faa28bd0 (diff) |
fix bug with pecl install on mac
Diffstat (limited to 'templates/config.m4.template')
-rw-r--r-- | templates/config.m4.template | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/config.m4.template b/templates/config.m4.template index dbc12188dc..5e73901efa 100644 --- a/templates/config.m4.template +++ b/templates/config.m4.template @@ -41,4 +41,18 @@ , $ext_shared, , -Wall -Werror -std=c11 ${"\\"} -fvisibility=hidden -DOPENSSL_NO_ASM -D_GNU_SOURCE -DWIN32_LEAN_AND_MEAN ${"\\"} -D_HAS_EXCEPTIONS=0 -DNOMINMAX) + + PHP_ADD_BUILD_DIR($ext_builddir/src/php/ext/grpc) + <% + dirs = {} + for lib in libs: + if lib.name in php_config_m4.get('deps', []): + for source in lib.src: + dirs[source[:source.rfind('/')]] = 1 + dirs = dirs.keys() + dirs.sort() + %> + % for dir in dirs: + PHP_ADD_BUILD_DIR($ext_builddir/${dir}) + % endfor fi |