summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2000-10-12 01:41:20 +0000
committerbrad <brad@openbsd.org>2000-10-12 01:41:20 +0000
commit204e3e4285f272ebfa10b55280cd77330ece9eb3 (patch)
tree999e0118cd3749eb8748100c66d1f83d509d8d46 /lib/libc_r
parentrefix breakage in previous commit, d@ forgot to remove his change while (diff)
downloadwireguard-openbsd-204e3e4285f272ebfa10b55280cd77330ece9eb3.tar.xz
wireguard-openbsd-204e3e4285f272ebfa10b55280cd77330ece9eb3.zip
- RCS id police!
- remove unnecessary CPPFLAGS and hardcoded optimization level in CFLAGS - fix execution of the benchmarks, ensure using nice from /usr/bin instead of the built-in which will fail, always use sh and try to run the binaries from the obj dir if it's used.
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/BENCH/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc_r/BENCH/Makefile b/lib/libc_r/BENCH/Makefile
index 180c86012a4..ce0bbe95024 100644
--- a/lib/libc_r/BENCH/Makefile
+++ b/lib/libc_r/BENCH/Makefile
@@ -1,7 +1,8 @@
+# $OpenBSD: Makefile,v 1.3 2000/10/12 01:41:20 brad Exp $
-CPPFLAGS += -pthread
+DEBUG = -ggdb
+CFLAGS += -Wall
LDFLAGS += -pthread
-CFLAGS += -O -ggdb
METRICS = null once_overhead self_overhead mutex_nocont mutex_cont\
cond_nowait cond_timed
MKDEP = -p
@@ -9,8 +10,7 @@ SRCS = ${METRICS:=.c}
CLEANFILES += ${METRICS}
all: ${METRICS}
- @${SUDO} nice -n -19 ${SHELL} -c \
- 'ulimit -d 65536; for m in ${METRICS}; do $$m || exit; done'
-
+ @${SUDO} /usr/bin/nice -n -19 sh -c \
+ 'ulimit -d 65536; for m in ${METRICS}; do ${.OBJDIR}/$$m || exit; done'
.include <bsd.prog.mk>