From 1cfff20fa5ce5b3ea11e2bd465f21fb599645065 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 31 Oct 2019 14:44:36 +1100 Subject: [PATCH] wrapper: depsdir resolution needs to be safe for absolute paths Wine uses absolute paths to the toolchain dependencies (like libgcc_s_seh) --- wrapper.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper.py.in b/wrapper.py.in index 7ef36cd..8f2ae39 100755 --- a/wrapper.py.in +++ b/wrapper.py.in @@ -131,7 +131,7 @@ else: depsdir = ['lib', 'lib64'] searchvar = 'LD_LIBRARY_PATH' -depsdir = [ f"@CMAKE_CURRENT_BINARY_DIR@/deps/{dir}" for dir in depsdir ] +depsdir = [ os.path.join("@CMAKE_CURRENT_BINARY_DIR@/deps/", dir) for dir in depsdir ] # append the in-tree dependencies to the library path search = separator.join(