Don't default to lib64 if symlink

Some distros, such as Arch, symlink lib64 to lib for compat reasons
and programs shouldn't actually install there.
pull/940/head
Patrick Griffis 8 years ago committed by Jussi Pakkanen
parent 263cb6a5f0
commit 8b27a48d56
  1. 2
      mesonbuild/mesonlib.py

@ -174,7 +174,7 @@ def default_libdir():
return 'lib/' + archpath
except Exception:
pass
if os.path.isdir('/usr/lib64'):
if os.path.isdir('/usr/lib64') and not os.path.islink('/usr/lib64'):
return 'lib64'
return 'lib'

Loading…
Cancel
Save