/
githubmirror
/
libblkio
Обзор
Документация
Войти
/
githubmirror
/
libblkio
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/meson.build
30 строк
973 B
Paolo Bonzini
Pass linker arguments to hide unwanted symbols
07 янв 2026, 07:22
07 янв 2026, 07:22
62f13cf
Код
Авторство
О чём код?
cargo_build = find_program('cargo-build.sh') staticlib_name = 'libblkio.a' staticlib_target = custom_target(staticlib_name, build_by_default : true, build_always_stale : true, command : [cargo_build, get_option('debug').to_string(), get_option('optimization'), meson.current_build_dir() / 'target', '@OUTPUT@'], console : true, output : [staticlib_name]) # files('libblkio.lds').full_path() only supported in Meson 1.4.0 or later symbols = meson.current_source_dir() / 'libblkio.lds' lib = library('blkio', sources: files('error-msg.c'), dependencies: meson.get_compiler('c').find_library('m', required: true), link_whole: staticlib_target, install: true, link_depends: files('libblkio.lds'), link_args: ['-Wl,-version-script,' + symbols], version: meson.project_version()) # generate pkg-config file import('pkgconfig').generate(libraries : ['-lblkio'], name : 'blkio', description : 'Block device I/O library')