meson: Slightly simplify jansson soname retrieval

The process for retrieving jansson's soname has been slightly
simplified.

https://mail.gnome.org/archives/networkmanager-list/2018-January/msg00054.html
This commit is contained in:
Iñigo Martínez 2018-01-11 17:02:11 +01:00 committed by Thomas Haller
parent 34cb6f9877
commit 4fc4c16092

View file

@ -187,8 +187,7 @@ config_h.set10('WITH_JANSSON', jansson_dep.found())
if jansson_dep.found()
jansson_libdir = jansson_dep.get_pkgconfig_variable('libdir')
readelf = find_program('readelf', 'readelf')
res = run_command(readelf, '-d', join_paths(jansson_libdir, 'libjansson.so'))
res = run_command(find_program('eu-readelf', 'readelf'), '-d', join_paths(jansson_libdir, 'libjansson.so'))
jansson_soname = ''
foreach line: res.stdout().split('\n')
if line.strip().contains('SONAME')