libfprint/build: Ignore LD_LIBRARY_PATH (and use rpath) on local binaries

DT_RUNPATH is intentionally searched after $LD_LIBRARY_PATH.
-Wl,--disable-new-dtags switches to the old DT_RPATH tag, which is searched
before $LD_LIBRARY_PATH. So the embedded paths in the build binary will now
win over whatever is in the environment.

Not breaking builds.
This commit is contained in:
Marco Trevisan (Treviño) 2026-03-07 01:33:04 +01:00
parent 9e59d69271
commit f0d4a8830b

View file

@ -329,7 +329,9 @@ udev_hwdb = executable('fprint-list-udev-hwdb',
'fprint-list-udev-hwdb.c',
dependencies: libfprint_private_dep,
link_with: libfprint_drivers,
install: false)
install: false,
link_args: ['-Wl,--disable-new-dtags'],
)
udev_hwdb_generator = custom_target('udev-hwdb',
output: 'autosuspend.hwdb',
@ -343,7 +345,9 @@ metainfo = executable('fprint-list-metainfo',
'fprint-list-metainfo.c',
dependencies: libfprint_private_dep,
link_with: libfprint_drivers,
install: false)
install: false,
link_args: ['-Wl,--disable-new-dtags'],
)
metainfo_generator = custom_target('metainfo',
output: 'org.freedesktop.libfprint.metainfo.xml',
@ -359,7 +363,9 @@ if install_udev_rules
'fprint-list-udev-rules.c',
dependencies: libfprint_private_dep,
link_with: libfprint_drivers,
install: false)
install: false,
link_args: ['-Wl,--disable-new-dtags'],
)
custom_target('udev-rules',
output: '70-@0@.rules'.format(versioned_libname),