mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 01:36:17 +01:00
build: Fix -Dlibelf=disabled on Linux
Commit f6c40b1d
fixed libelf detection on FreeBSD (where the library has
no pkg-config file and needs to be found via `find_library()`), but
broke `-Dlibelf=disabled` on Linux, as `get_option('libelf')` was no
longer checked.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Fixes: #3120
This commit is contained in:
parent
1a659d630d
commit
130c2d6373
@ -935,7 +935,7 @@ endif
|
||||
# Dependencies used by executables below
|
||||
have_libelf = false
|
||||
libelf = dependency('libelf', version : '>= 0.8.12', required : false)
|
||||
if libelf.found()
|
||||
if libelf.found() and get_option('libelf').allowed()
|
||||
have_libelf = true
|
||||
else
|
||||
# This fallback is necessary on *BSD. elfutils isn't the only libelf
|
||||
|
Loading…
Reference in New Issue
Block a user