summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2012-08-31 20:09:27 +0000
committerkettenis <kettenis@openbsd.org>2012-08-31 20:09:27 +0000
commit4e1e98cf1031ffcccee3d196be668de5b5a64467 (patch)
tree2d70280ec7a74a95fbd91c8505cf449b63d1914a
parentUpdate license to two-clause BSD. Permission to do so was granted (diff)
downloadwireguard-openbsd-4e1e98cf1031ffcccee3d196be668de5b5a64467.tar.xz
wireguard-openbsd-4e1e98cf1031ffcccee3d196be668de5b5a64467.zip
Compile ld.so with debug info. This will not only help people hacking on
ld.so itself, but also make it easier to debug code that uses dlopen(3). ok deraadt@, matthew@
-rw-r--r--libexec/ld.so/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile
index 185061562bf..49fb2826a6f 100644
--- a/libexec/ld.so/Makefile
+++ b/libexec/ld.so/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.37 2010/02/03 20:49:00 miod Exp $
+# $OpenBSD: Makefile,v 1.38 2012/08/31 20:09:27 kettenis Exp $
SUBDIR=ldconfig ldd
@@ -25,6 +25,7 @@ SRCS+= library.c
.include "${.CURDIR}/${MACHINE_CPU}/Makefile.inc"
.PATH: ${.CURDIR}/${MACHINE_CPU}
+DEBUG?= -g
CFLAGS += -Wall -Werror
CFLAGS += -I${.CURDIR} -I${.CURDIR}/${MACHINE_CPU} \
-Dstrsep=_dl_strsep