From: Nicholas Nethercote Date: Wed, 25 Aug 2004 11:57:21 +0000 (+0000) Subject: Fix symlinking -- the old code worked, but worked for the wrong reason; the X-Git-Tag: svn/VALGRIND_2_2_0~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfebbd91082975c6d49b20f2e415dcb44fedd0e5;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am index ec0eaefd5d..8c889198a8 100644 --- a/coregrind/Makefile.am +++ b/coregrind/Makefile.am @@ -154,6 +154,6 @@ all-local: 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