[BUG] the CMake toolchain file's linker flags don't play well with other languages

Open
#2,264 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cmake
Domain
build-system

Research direction

Start by locating the NDK CMake toolchain file and the linker flag additions that use -Wl,; the issue does not name a file or test. Read the linked CMake and Swift reports to understand the non-C/C++ compiler regression, then check how the toolchain handles LINKER:. Done means the linker flags work with other languages across the affected NDK versions.

Written by the indexing model from the issue text.

Description

bug
Description

There was a regression with CMake 3.30 in how linker flags were passed to non-C/C++ and Windows compilers that broke their builds, which we've been working around for awhile now. It would be good to fix the NDK toolchain file instead to replace -Wl, additions with LINKER:, as detailed by @etcwilde here.

I am using a supported NDK
  • I have checked and the NDK I'm using is currently supported
Affected versions

r27, r28, r29, r30

Dominant language
No language data
Stars
2.3k
Forks
311
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/ndk

All issues in android/ndk

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.