Fix symlinking -- the old code worked, but worked for the wrong reason;  the
bit before "$(subdir)" has to specify the path from .in_place/ to the root.
It just so happened that $(top_builddir) was the same for all directories at
the same level in the hierarchy as .in_place/ (ie. one deep).

(I haven't bothered changing it in all the tool Makefile.am files, because I'll
do that when I factor out all their common bits into a single file, be it
before or after 2.2.0 is released.)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2616 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am
index ec0eaef..8c88919 100644
--- a/coregrind/Makefile.am
+++ b/coregrind/Makefile.am
@@ -154,6 +154,6 @@
 	for i in $(val_PROGRAMS); do \
 		to=$(inplacedir)/$$(echo $$i | sed 's,libpthread.so,libpthread.so.0,'); \
 		rm -f $$$to; \
-		ln -sf $(top_builddir)/$(subdir)/$$i $$to; \
+		ln -sf ../$(subdir)/$$i $$to; \
 	done