aboutsummaryrefslogtreecommitdiff
path: root/cddl/lib/drti/Makefile
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2013-05-07 22:05:57 +0000
committerBrooks Davis <brooks@FreeBSD.org>2013-05-07 22:05:57 +0000
commit168ba1089a07d90cb90d8ea6386e9533ec7f5af0 (patch)
tree9ae5c5153bd81964ffd425ffeb1f71ed20b37305 /cddl/lib/drti/Makefile
parent22a962c9fe4e347a1a55c9c7ae445aa382887ad3 (diff)
downloadsrc-168ba1089a07d90cb90d8ea6386e9533ec7f5af0.tar.gz
src-168ba1089a07d90cb90d8ea6386e9533ec7f5af0.zip
Work around the implementation of LIBRARIES_ONLY. It causes drti.o to
not be installed in /usr/lib32 on systems with compat-32 support. This fix has two parts. First, the build is forced by linking drti.o into a dummy internal library. Second, the object file is installed manually in the LIBRARIES_ONLY case. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=250337
Diffstat (limited to 'cddl/lib/drti/Makefile')
-rw-r--r--cddl/lib/drti/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/cddl/lib/drti/Makefile b/cddl/lib/drti/Makefile
index 6e3d3a61a41d..c715809708f5 100644
--- a/cddl/lib/drti/Makefile
+++ b/cddl/lib/drti/Makefile
@@ -9,6 +9,8 @@ FILESGRP= ${LIBGRP}
FILESMODE= ${LIBMODE}
FILESDIR= ${LIBDIR}/dtrace
CLEANFILES= ${FILES}
+LIB= drti-dummy
+INTERNALLIB=
CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \
-I${.CURDIR}/../../../cddl/compat/opensolaris/include \
@@ -18,4 +20,10 @@ CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \
-I${OPENSOLARIS_SYS_DISTDIR}/uts/common \
-DPIC ${PICFLAG}
+.if make(install) && defined(LIBRARIES_ONLY)
+install:
+ ${INSTALL} -o ${FILESOWN} -g ${FILESGRP} -m ${FILESMODE} \
+ ${FILES} ${DESTDIR}${FILESDIR}
+.endif
+
.include <bsd.lib.mk>