mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-06-21 22:18:28 +02:00
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:
parent
9e59d69271
commit
f0d4a8830b
1 changed files with 9 additions and 3 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue