Building Android from sources: unsupported reloc 43

前端 未结 5 1068
忘了有多久
忘了有多久 2020-12-08 04:49

When I\'m compiling Android 5.1.1, I get dozens of errors like this:

...
...
...
libnativehelper/JniInvocation.cpp:1         


        
5条回答
  •  离开以前
    2020-12-08 05:33

    One should apply this patch to get the things working https://android-review.googlesource.com/#/c/223100/

    Open build/core/clang/HOST_x86_common.mk file in your android source code directory with some editor add these lines, as mentioned in this link

    For Android Lollipop or any earlier version, make sure to keep -no-integrated-as while applying this patch. Make sure the line continuations are proper(\ at the end of each line except the last line).

    But, -no-integrated-as is removed in Marshmallow.

提交回复
热议问题