diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-06-09 15:10:25 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-06-09 15:10:25 +0300 |
commit | f326f6d15e61097fccaab82e579cfdb5412fd777 (patch) | |
tree | 24f19e5ec0a8daa204146bec3905c43d355ff331 | |
parent | 5fe09f9ee455c8c883c9e8ccf28ff9f3a80c412b (diff) | |
download | meson-f326f6d15e61097fccaab82e579cfdb5412fd777.zip meson-f326f6d15e61097fccaab82e579cfdb5412fd777.tar.gz meson-f326f6d15e61097fccaab82e579cfdb5412fd777.tar.bz2 |
Fix to work with /lib multilib.
-rwxr-xr-x | environment.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/environment.py b/environment.py index af0c9e7..ad7328d 100755 --- a/environment.py +++ b/environment.py @@ -788,8 +788,14 @@ class Environment(): return ['C:/mingw/lib'] # Fixme if is_osx(): return ['/usr/lib'] # Fix me as well. + # The following is probably Debian/Ubuntu specific. unixdirs = ['/usr/lib', '/lib'] plat = subprocess.check_output(['uname', '-m']).decode().strip() + # This is a terrible hack. I admit it and I'm really sorry. + # I just don't know what the correct solution is. + if plat == 'i686': + plat = 'i386' unixdirs += glob('/usr/lib/' + plat + '*') + unixdirs += glob('/lib/' + plat + '*') unixdirs.append('/usr/local/lib') return unixdirs |