diff options
author | 2017-08-19 17:28:32 +0000 | |
---|---|---|
committer | 2017-08-19 17:28:32 +0000 | |
commit | e559713f3b77b34e205ac0c6c8b15ab57f4f5608 (patch) | |
tree | 4159d32a0bf4273cf56a438f2bbad479c688df0d | |
parent | Equalize the use of LINKFLAGS and STRIPFLAGS with other mips64 ports. (diff) | |
download | wireguard-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/Makefile | 4 |
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 |