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 (closed)
Closes #3120 (closed)