wrapper: depsdir resolution needs to be safe for absolute paths

Wine uses absolute paths to the toolchain dependencies (like
libgcc_s_seh)
This commit is contained in:
Danny Robson 2019-10-31 14:44:36 +11:00
parent 8caeef1819
commit 1cfff20fa5

View File

@ -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(