]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix symlinking -- the old code worked, but worked for the wrong reason; the
authorNicholas Nethercote <n.nethercote@gmail.com>
Wed, 25 Aug 2004 11:57:21 +0000 (11:57 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Wed, 25 Aug 2004 11:57:21 +0000 (11:57 +0000)
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

coregrind/Makefile.am

index ec0eaefd5da0460393fd8711949a924d87514d1f..8c889198a834947db0e4350f822b51670e5e0d49 100644 (file)
@@ -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