+
Skip to content

clang passes -faddrsig by default, incompatible with GNU binutils #884

@DanAlbert

Description

@DanAlbert

Building the full shaderc package (ndk-build -C $NDK/sources/third_party/shaderc NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk APP_PLATFORM=android-24 APP_STL:=c++_static libshaderc_combined) is currently broken because Clang now uses -faddrsig by default, but GNU binutils does not (and has no intention to) support this.

For r19, we need to fix ndk-build and the CMake toolchain to pass -fno-addrsig by default, and document this in the build system maintainer's doc.

For short term future releases, we need to fix the Clang driver to do this by default.

Longer term, the NDK should be moving to LLVM ar, ranlib, lld, strip, etc, but not all of those are ready for NDK use yet.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载