mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 12:10:08 +01:00
zlib: fix discovery of cpu-features.h for android
Fixed cpu-features.h not found issue. Co-Authored-By: Luigi Pinca <luigipinca@gmail.com> Fixes: https://github.com/nodejs/node/issues/49766 PR-URL: https://github.com/nodejs/node/pull/49828 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
parent
1b96975f27
commit
16ac5e1ca8
@ -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"):
|
||||
|
@ -230,7 +230,7 @@
|
||||
],
|
||||
},],
|
||||
['OS == "android"', {
|
||||
'cflags': [ '-fPIC' ],
|
||||
'cflags': [ '-fPIC', '-I<(android_ndk_path)/sources/android/cpufeatures' ],
|
||||
'ldflags': [ '-fPIC' ]
|
||||
}],
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user