summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-05-11 22:19:22 +0000
committerderaadt <deraadt@openbsd.org>2006-05-11 22:19:22 +0000
commit0b48c4eea4f0109d58c3ed980309bae64a89bfd3 (patch)
tree8591f26d3cc3feb9579f9fd01e59e4c7929c4ca8
parentmove prebind_strip(8) into ldconfig as the -D option; ok drahn (diff)
downloadwireguard-openbsd-0b48c4eea4f0109d58c3ed980309bae64a89bfd3.tar.xz
wireguard-openbsd-0b48c4eea4f0109d58c3ed980309bae64a89bfd3.zip
use CFLAGS with -I to reach for prebind.h
-rw-r--r--libexec/ld.so/ldconfig/Makefile4
-rw-r--r--libexec/ld.so/ldconfig/prebind_delete.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ld.so/ldconfig/Makefile b/libexec/ld.so/ldconfig/Makefile
index 4f0e1109827..1b165066953 100644
--- a/libexec/ld.so/ldconfig/Makefile
+++ b/libexec/ld.so/ldconfig/Makefile
@@ -1,11 +1,11 @@
-# $OpenBSD: Makefile,v 1.5 2006/05/11 22:03:22 deraadt Exp $
+# $OpenBSD: Makefile,v 1.6 2006/05/11 22:19:22 deraadt Exp $
# $NetBSD: Makefile,v 1.10 1995/03/06 04:24:41 cgd Exp $
PROG= ldconfig
SRCS= ldconfig.c shlib.c etc.c prebind_delete.c
LDDIR?= $(.CURDIR)/..
#CFLAGS+=-Werror
-#CFLAGS+=-I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH)
+CFLAGS+=-I$(.CURDIR) -I$(.CURDIR)/..
LDSTATIC=${STATIC}
BINDIR= /sbin
MAN= ldconfig.8
diff --git a/libexec/ld.so/ldconfig/prebind_delete.c b/libexec/ld.so/ldconfig/prebind_delete.c
index 6933f11acc9..ddcad2c9dc5 100644
--- a/libexec/ld.so/ldconfig/prebind_delete.c
+++ b/libexec/ld.so/ldconfig/prebind_delete.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: prebind_delete.c,v 1.1 2006/05/11 22:03:22 deraadt Exp $ */
+/* $OpenBSD: prebind_delete.c,v 1.2 2006/05/11 22:19:23 deraadt Exp $ */
/*
* Copyright (c) 2006 Dale Rahn <drahn@dalerahn.com>
@@ -26,7 +26,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include "../prebind.h"
+#include "prebind.h"
#define BUFSZ (256 * 1024)