[英]aosp_x86-eng build on AOSP 4.3 source code is failing with error __strlen_chk
I am trying to build the x86 image on AOSP 4.3 source code. 我正在尝试在AOSP 4.3源代码上构建x86映像。 followed below steps:
遵循以下步骤:
It gives below error. 它给出以下错误。
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
bionic/libc/include/string.h:219: error: undefined reference to '__strlen_chk'
Question: 题:
I've solved it when building libcurl. 我在构建libcurl时解决了它。 The key idea is setting
D_FORTIFY_SOURCE=0
in flags to disable checks, as mentioned in the source code . 关键思想是在标志中设置
D_FORTIFY_SOURCE=0
以禁用检查,如源代码中所述 。
LOCAL_STATIC_LIBRARIES + = libc
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.