android / android/ndk

No libdl.a static library

Open
#472 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

#### SSIA, there is no static version of the libdl library

This makes static builds which attempt to dynamically open other libraries impossible. Missing libz.a or libm.a could be worked around by using dlopen()/dlsym()/dlclose(), but missing libdl.a _cannot_ be worked around (unless one is an expert with writing one's own dynamic linker).

#### Environment Details

* NDK Version: 15.1.4119039
* Build sytem: ndk-build
* Host OS: Linux
* Compiler: Clang
* NDK API level: All (`find ${NDK_DIR} -name libdl.a` => no results)

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the NDK build and packaging configuration used by ndk-build, then verify the library outputs with the reported find command across API levels. Done means a libdl.a is available for the supported API levels and static builds can use dlopen(), dlsym(), and dlclose().

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.