From df5dd64b43793ca878355d41c7df4fda3a8619ad Mon Sep 17 00:00:00 2001 From: MatteoBax <98881971+MatteoBax@users.noreply.github.com> Date: Fri, 29 Sep 2023 14:34:21 +0200 Subject: [PATCH] zlib: fixes https://github.com/nodejs/node/issues/49766 zlib: fixes https://github.com/nodejs/node/issues/49766 fixed cpu-features.h not found issue Co-Authored-By: Luigi Pinca --- android_configure.py | 1 + common.gypi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/android_configure.py b/android_configure.py index 57d940239150df..a82bb56bc5f5b6 100644 --- a/android_configure.py +++ b/android_configure.py @@ -70,6 +70,7 @@ def patch_android(): GYP_DEFINES += " v8_target_arch=" + arch GYP_DEFINES += " android_target_arch=" + arch GYP_DEFINES += " host_os=" + host_os + " OS=android" +GYP_DEFINES += " android_ndk_path=" + android_ndk_path os.environ['GYP_DEFINES'] = GYP_DEFINES if os.path.exists("./configure"): diff --git a/common.gypi b/common.gypi index 909d09934a1b25..bbf9522a2f8e00 100644 --- a/common.gypi +++ b/common.gypi @@ -230,7 +230,7 @@ ], },], ['OS == "android"', { - 'cflags': [ '-fPIC' ], + 'cflags': [ '-fPIC', '-I<(android_ndk_path)/sources/android/cpufeatures' ], 'ldflags': [ '-fPIC' ] }], ],