aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-06-09 15:10:25 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-06-09 15:10:25 +0300
commitf326f6d15e61097fccaab82e579cfdb5412fd777 (patch)
tree24f19e5ec0a8daa204146bec3905c43d355ff331
parent5fe09f9ee455c8c883c9e8ccf28ff9f3a80c412b (diff)
downloadmeson-f326f6d15e61097fccaab82e579cfdb5412fd777.zip
meson-f326f6d15e61097fccaab82e579cfdb5412fd777.tar.gz
meson-f326f6d15e61097fccaab82e579cfdb5412fd777.tar.bz2
Fix to work with /lib multilib.
-rwxr-xr-xenvironment.py6
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