From f6758f24340ff495ba5befa21d65787f38fe7a72 Mon Sep 17 00:00:00 2001 From: Binh Nguyen Date: Tue, 12 Nov 2019 13:54:49 +0700 Subject: Prevent install_name_tool to run on EXE when cross compile on OSX --- mesonbuild/scripts/depfixer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/scripts/depfixer.py') diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py index 9925f4e..5be7d40 100644 --- a/mesonbuild/scripts/depfixer.py +++ b/mesonbuild/scripts/depfixer.py @@ -431,8 +431,8 @@ def fix_rpath(fname, new_rpath, final_path, install_name_mappings, verbose=True) # Static libraries never have rpaths if fname.endswith('.a'): return - # DLLs never have rpaths - if fname.endswith('.dll'): + # DLLs and EXE never have rpaths + if fname.endswith('.dll') or fname.endswith('.exe'): return try: if fname.endswith('.jar'): -- cgit v1.1