summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-08-08 21:04:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-08-08 21:04:14 +0000
commit33d487c9f6c1266d5fdcdaad4855ed6217703bea (patch)
tree529008d23b617326cc0fc7cc96c3298e0717dae7 /libexec
parent21bf4daa8658b2e95e0263866ab4709a82b5418b (diff)
on NOPIC architectures, do not build and install ld.so. this is in
particular for landisk (sh) where ld.so does not yet 100% work, but was still being installed. libtool cares. modified from matthieu patch; ok drahn
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.so/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile
index 61ab6c39a0a..02a40e1f8c2 100644
--- a/libexec/ld.so/Makefile
+++ b/libexec/ld.so/Makefile
@@ -1,6 +1,16 @@
-# $OpenBSD: Makefile,v 1.35 2006/12/26 22:36:51 deraadt Exp $
+# $OpenBSD: Makefile,v 1.36 2007/08/08 21:04:13 deraadt Exp $
SUBDIR=ldconfig ldd
+
+MAN= ld.so.1
+
+.include <bsd.own.mk>
+.if defined(NOPIC)
+NOPROG=
+.else
+PROG= ld.so
+.endif
+
VPATH=${.CURDIR}/../../lib/libc/string
SRCS= ldasm.S loader.c resolve.c dlfcn.c dl_printf.c rtld_machine.c
@@ -11,8 +21,6 @@ SRCS+= library_mquery.c
SRCS+= library.c
.endif
-PROG= ld.so
-MAN= ld.so.1
.include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
.PATH: ${.CURDIR}/${MACHINE_ARCH}