summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/ld.so/test/Makefile4
-rw-r--r--libexec/ld.so/test/dltest.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/libexec/ld.so/test/Makefile b/libexec/ld.so/test/Makefile
index 97cf88d26e9..78d80e18f84 100644
--- a/libexec/ld.so/test/Makefile
+++ b/libexec/ld.so/test/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 2001/07/11 05:56:02 pvalchev Exp $
+# $OpenBSD: Makefile,v 1.8 2001/09/25 21:51:16 drahn Exp $
DIR=/usr/src/libexec/ld.so/obj/ld.so
#necessary to build the shared objects. not necessary for dltest but
@@ -6,7 +6,7 @@ DIR=/usr/src/libexec/ld.so/obj/ld.so
CFLAGS += -fpic
CFLAGS += -g
CFLAGS += -I${.CURDIR}/.. -I${.CURDIR}/../${MACHINE_ARCH}
-LDFLAGS += -Wl,--export-dynamic -Wl,-dynamic-linker -Wl,${DIR}
+LDFLAGS += -Wl,--export-dynamic -Wl,-dynamic-linker,${DIR} -Wl,-rpath,.
#LDFLAGS += -Wl,--export-dynamic
SRCS= ldt.c
diff --git a/libexec/ld.so/test/dltest.c b/libexec/ld.so/test/dltest.c
index ccac4337177..77420d5f69e 100644
--- a/libexec/ld.so/test/dltest.c
+++ b/libexec/ld.so/test/dltest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dltest.c,v 1.3 2001/05/14 22:18:23 niklas Exp $ */
+/* $OpenBSD: dltest.c,v 1.4 2001/09/25 21:51:16 drahn Exp $ */
#include <stdio.h>
#include <stdlib.h>
@@ -6,7 +6,6 @@
#include <dlfcn.h>
#include <ctype.h>
#include <elf_abi.h>
-#include <machine/reloc.h>
#include <nlist.h>
#include "archdep.h"
#include "resolve.h"