Undefined reference to ' __system_property_get '
This series of functions is defined in the arm64 header file, but is not found in the libc.so.
Header:sys/system_properties.h
__system_property_get__system_property_set__system_property_find__system_property_read__system_property_find_nth__system_property_foreach
Compile a library of 64-bit arm platform when reported a such link error, __system_property_get is the Android NDK provides a function, 32 bits is always OK, compile 64 when the error is reported, Readelf looking at the 64-bit libc.so did not find this symbol. So Google found:
Http://stackoverflow.com/questions/28413530/api-to-get-android-system-properties-is-removed-in-arm64-platforms
Also found this bug in Google's issues
https://code.google.com/p/android/issues/detail?id=143627
Workaround:
Find an Android 5.1 device or virtual machine on an arm platform and take the/system/lib64/libc.so out and replace the repository inside the NDK.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
__system_property_get arm64 Link Error