From 1aed5853c24153d5b5397a5ab772da0e1d9243b2 Mon Sep 17 00:00:00 2001 From: brooks Date: Sun, 12 May 2013 00:35:57 +0000 Subject: [PATCH] MFC r250337 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. git-svn-id: svn://svn.freebsd.org/base/stable/9@250534 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- cddl/lib/drti/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cddl/lib/drti/Makefile b/cddl/lib/drti/Makefile index 6e3d3a61a..c71580970 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 -- 2.45.0