Skip to content

Commit

Permalink
Fix export dynamic linker option
Browse files Browse the repository at this point in the history
As of LLVM/Clang 18 and LLD18 linker with the -export-dynamic option compilation ends with an error:
cc: error: unknown argument: '-export-dynamic'

For GCC and the default compiler this is not a problem. The problem occurs in Clang/LLD 18.

Fix tested on Mandriva via OpenMandrivaAssociation/flatpak@39f1c03
  • Loading branch information
AngryPenguinPL authored and smcv committed Apr 8, 2024
1 parent 9c059eb commit 1f770f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/meson.build
Expand Up @@ -253,7 +253,7 @@ libflatpak = library(
gnu_symbol_visibility : 'hidden',
include_directories : [common_include_directories],
install : true,
link_args : ['-export-dynamic'],
link_args : ['-Wl,--export-dynamic'],
link_whole : [
libflatpak_common_base,
libflatpak_common,
Expand Down

0 comments on commit 1f770f3

Please sign in to comment.