Skip to content

meson: Pass --export-dynamic option to linker

Khem Raj requested to merge kraj/libgudev:master into master

Bypass the compiler driver trying to comprehend and translate it for linker, since its not clear what the right behavior should be, gcc seems to translate it into --export-dynamic but clang 18+ rejects it

| x86_64-yoe-linux-clang: error: unknown argument: '-export-dynamic'

also see [1]

This makes it work as intended across gcc and clang

[1] https://discourse.llvm.org/t/clang-option-export-dynamic-parse-to-e-xport-dynamic-error/72454 Signed-off-by: Khem Raj raj.khem@gmail.com

Merge request reports