diff --git a/android_configure.py b/android_configure.py index 57d94023915..a82bb56bc5f 100644 --- a/android_configure.py +++ b/android_configure.py @@ -70,6 +70,7 @@ GYP_DEFINES = "target_arch=" + arch 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 909d09934a1..bbf9522a2f8 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' ] }], ],