mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-02-13 07:37:03 +00:00
![Stephen Smalley](/assets/img/avatar_default.png)
The Android build does not like the symbol versioning introduced by commit 8147bc7; the build fails with: host SharedLib: libsepol (out/host/linux-x86/obj/lib/libsepol.so) prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8//x86_64-linux/bin/ld: error: symbol cil_build_policydb has undefined version prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8//x86_64-linux/bin/ld: error: symbol cil_build_policydb has undefined version LIBSEPOL_1.1 clang: error: linker command failed with exit code 1 (use -v to see invocation) Omit the versioned symbols and simply use the current interfaces when building on Android. Commit 36f62b7 also broke the Android build by moving secilc out of libsepol, because the libsepol headers were not installed by the Android.mk file. Export the required libsepol headers for use by secilc and adjust secilc to pick them up from the right location on Android. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>