use abspath in link() because we might chdir in the middle

This commit is contained in:
Alon Zakai 2012-09-10 16:34:27 -07:00
Родитель f65c21c40a
Коммит 2c815155ae
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -561,6 +561,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
unresolved_symbols = set(['main']) # tracking unresolveds is necessary for .a linking, see below. (and main is always a necessary symbol)
resolved_symbols = set()
temp_dir = None
files = map(os.path.abspath, files)
for f in files:
if not Building.is_ar(f):
if Building.is_bitcode(f):