diff --git a/generators.py b/generators.py index 643e4f57b..b25cf2293 100755 --- a/generators.py +++ b/generators.py @@ -130,8 +130,7 @@ class Generator(): not isinstance(d, interpreter.SharedLibrary): raise RuntimeError('Tried to link with a non-library target "%s".' % d.get_basename()) fname = self.get_target_filename(d) - if '/' not in fname: - fname = './' + fname # Hack to make ldd find the library. + fname = './' + fname # Hack to make ldd find the library. args.append(fname) return args @@ -413,7 +412,7 @@ echo Run compile.sh before this or bad things will happen. return depfixer = self.environment.get_depfixer() fname = os.path.join(outdir, target.get_filename()) - cmds = [depfixer, fname, self.environment.get_build_dir()] + cmds = [depfixer, fname, './'] outfile.write(' '.join(shell_quote(cmds)) + ' || exit\n') def generate_tests(self, outfile):