Fix get_library_dirs() on FreeBSD

Fix get_library_dirs() on FreeBSD to only return /usr/local/lib,
/usr/lib and /lib as the default location to look for libraries.
FreeBSD does not use lib/${platform} or lib64 by default.  In general,
those directories should not exist, but in case they do, ensure they're
not picked up.
pull/4961/head
Niclas Zeising 6 years ago committed by Jussi Pakkanen
parent 87d64b4632
commit f85a71605d
  1. 2
      mesonbuild/mesonlib.py

@ -680,6 +680,8 @@ def get_library_dirs() -> List[str]:
# problematic, please raise the issue on the mailing list.
unixdirs = ['/usr/local/lib', '/usr/lib', '/lib']
if is_freebsd():
return unixdirs
# FIXME: this needs to be further genericized for aarch64 etc.
machine = platform.machine()
if machine in ('i386', 'i486', 'i586', 'i686'):

Loading…
Cancel
Save