You probably made a mistake in the modification of compiletelemac.py
The default version is
cmd = cfg['MODULES'][path.basename(lname)]['xlib']
if lprog == 'HOMERE_MASCARET':
cmd = cmd.replace('<objs>','*.o')
else:
cmd = cmd.replace('<objs>',ObjFiles)
cmd = cmd.replace('<libname>',LibFile)
The initial version without my modification was something like:
cmd = cfg['MODULES'][path.basename(lname)]['xlib']
cmd = cmd.replace('<objs>',ObjFiles)
cmd = cmd.replace('<libname>',LibFile)
and you should do similar change in the exe part which is 90 lines under
About the adstack problem, this is also partly hardcoded in compiletelemac.py in the compileMascaretDependencies part.
But if your root varaible is well definie in your config file, the program should find it...
Hope this helps