emersion / emersion/mrsh

meson: simplify symbol list linker args

Open
#170 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
C
Stars
531
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Instead of this:

https://github.com/mkhl/mrsh/blob/f94361fdff16f3a19a764691a418fb6734a634ad/meson.build#L40-L48

ubitux suggested this:

```meson
lib_link_args = cc.get_supported_link_arguments([
'-Wl,--version-script,@0@'.format(meson.current_source_dir() / 'lib.symexport'), # GNU ld
'-Wl,-exported_symbols_list,@0@'.format(meson.current_source_dir() / 'lib.darwin.symexport'), # Darwin
])
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.