emersion / mrsh

A minimal POSIX shell
MIT License
489 stars 35 forks source link

meson: simplify symbol list linker args #170

Open emersion opened 3 years ago

emersion commented 3 years ago

Instead of this:

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

ubitux suggested this:

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
])