diff options
author | Davide Cavalca <dcavalca@fb.com> | 2018-04-24 13:34:48 -0700 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 4125c1e54f58f53eaa1c05ce9d52617cddd4c64f (patch) | |
tree | 312f822f361cd66bb7946a0f7627634e400bf8fd /meson.build | |
parent | 70764ff5f7e286c99782adf56df047ca3fb0f7c4 (diff) |
meson: only build test-lib{systemd,udev}-static-sym for pic
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/meson.build b/meson.build index 496dffe71..cd7972368 100644 --- a/meson.build +++ b/meson.build @@ -2856,15 +2856,13 @@ endforeach # 'test-libsystemd-static-sym', # test_libsystemd_sym_c, # include_directories : includes, -# c_args : static_libsystemd_pic ? [] : ['-fno-PIC'], -# link_args : static_libsystemd_pic ? [] : ['-fno-PIC'], # link_with : [install_libsystemd_static], # dependencies : [threads], # threads is already included in dependencies on the library, # # but does not seem to get propagated. Add here as a work-around. -# build_by_default : static_libsystemd != 'false', -# install : install_tests and static_libsystemd != 'false', +# build_by_default : static_libsystemd_pic, +# install : install_tests and static_libsystemd_pic, # install_dir : testsdir) -# if static_libsystemd != 'false' +# if static_libsystemd_pic # test('test-libsystemd-static-sym', exe) # endif # @@ -2882,13 +2880,12 @@ endforeach # 'test-libudev-static-sym', # test_libudev_sym_c, # include_directories : includes, -# c_args : ['-Wno-deprecated-declarations'] + -# (static_libsystemd_pic ? [] : ['-fno-PIC']), +# c_args : ['-Wno-deprecated-declarations'], # link_with : [install_libudev_static], -# build_by_default : static_libudev != 'false', -# install : install_tests and static_libudev != 'false', +# build_by_default : static_libudev_pic, +# install : install_tests and static_libudev_pic, # install_dir : testsdir) -# if static_libudev != 'false' +# if static_libudev_pic # test('test-libudev-static-sym', exe) # endif # |