summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-08-19 17:28:32 +0000
committerderaadt <deraadt@openbsd.org>2017-08-19 17:28:32 +0000
commite559713f3b77b34e205ac0c6c8b15ab57f4f5608 (patch)
tree4159d32a0bf4273cf56a438f2bbad479c688df0d
parentEqualize the use of LINKFLAGS and STRIPFLAGS with other mips64 ports. (diff)
downloadwireguard-openbsd-e559713f3b77b34e205ac0c6c8b15ab57f4f5608.tar.xz
wireguard-openbsd-e559713f3b77b34e205ac0c6c8b15ab57f4f5608.zip
Build ld.so with ${DEBUG} which defults to -g, like other "libraries" are.
This provides some unwind benefits. ok kettenis dlg
-rw-r--r--libexec/ld.so/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile
index aaa5321efa2..4c1cc668879 100644
--- a/libexec/ld.so/Makefile
+++ b/libexec/ld.so/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.63 2017/01/05 21:14:22 naddy Exp $
+# $OpenBSD: Makefile,v 1.64 2017/08/19 17:28:32 deraadt Exp $
SUBDIR=ldconfig ldd
MAN= ld.so.1
@@ -51,7 +51,7 @@ $(test_prog):
$(CC) -x c - -Wl,-dynamic-linker,${.OBJDIR}/$(candidate) -o $@
$(PROG): $(test_prog) ${VERSION_SCRIPT}
- $(LD) -x -e _dl_start $(ELF_LDFLAGS) -o $(candidate) $(OBJS) $(LDADD)
+ $(LD) ${DEBUG} -x -e _dl_start $(ELF_LDFLAGS) -o $(candidate) $(OBJS) $(LDADD)
.ifndef CROSSDIR
ulimit -c 0; [ "`${.OBJDIR}/$(test_prog) ok`" = "${.OBJDIR}/$(test_prog): ok!" ]
.endif