summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-04-09 09:28:17 +0100
committerEric Engestrom <[email protected]>2019-04-11 12:40:16 +0000
commitc77acc3ceba711ec3790fb674aeb8c6a25433741 (patch)
tree337e9070a9e1de52e782abf213ed2001ec922cf0
parent9e3740c47f2c3d98591ed55af8ebc186735da070 (diff)
meson: remove meson-created megadrivers symlinks
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110356 Fixes: aa7afe324c2092fb31f9 "meson: strip rpath from megadrivers" Signed-off-by: Eric Engestrom <[email protected]> Tested-by: Mike Lothian <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--bin/install_megadrivers.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/install_megadrivers.py b/bin/install_megadrivers.py
index 31636f7244c..470137e0c1d 100644
--- a/bin/install_megadrivers.py
+++ b/bin/install_megadrivers.py
@@ -69,7 +69,14 @@ def main():
name, ext = os.path.splitext(name)
finally:
os.chdir(ret)
+
+ # Remove meson-created master .so and symlinks
os.unlink(master)
+ name, ext = os.path.splitext(master)
+ while ext != '.so':
+ if os.path.lexists(name):
+ os.unlink(name)
+ name, ext = os.path.splitext(name)
if __name__ == '__main__':