summaryrefslogtreecommitdiff
path: root/libexec/ld.elf_so/Makefile
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2013-05-08 15:33:45 +0000
committerchristos <christos@NetBSD.org>2013-05-08 15:33:45 +0000
commit3a464aacae109bc207cbf9b6728ed9767265eebf (patch)
tree2e4a936194ea0a4577fa37a46123fac95ef7d65b /libexec/ld.elf_so/Makefile
parente95d80b54f98abdc986c6b63b4b96a733fe5b9c8 (diff)
provide debug symlink.
Diffstat (limited to 'libexec/ld.elf_so/Makefile')
-rw-r--r--libexec/ld.elf_so/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile
index 4129ae4ad9b..17befa6706a 100644
--- a/libexec/ld.elf_so/Makefile
+++ b/libexec/ld.elf_so/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.118 2013/05/06 22:49:10 christos Exp $
+# $NetBSD: Makefile,v 1.119 2013/05/08 15:33:45 christos Exp $
#
# NOTE: when changing ld.so, ensure that ldd still compiles.
#
@@ -150,6 +150,10 @@ _PROGDEBUG.${PROG} := ${PROG}.debug
.if ${SHLINKINSTALLDIR} != "/usr/libexec"
SYMLINKS+= ${SHLINKINSTALLDIR}/${PROG} /usr/libexec/${PROG}
+.if ${MKDEBUG} != "no"
+SYMLINKS+= ${DESTDIR}${DEBUGDIR}${BINDIR}/${PROG}.debug \
+ ${DESTDIR}${DEBUGDIR}/usr${BINDIR}/${PROG}.debug
+.endif
.endif
.include <bsd.prog.mk>