diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-08-21 13:48:04 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-08-21 13:48:04 +0000 |
commit | 26d140a225ce9d9a3a4ef4765c2345be9c08e514 (patch) | |
tree | 10541a784d24f1a6019cd266eb1b8ed7867ed89c /cddl/lib/drti | |
parent | 735dfcf54775bf6d68bdee79852fe9a072555aae (diff) | |
download | FreeBSD-src-26d140a225ce9d9a3a4ef4765c2345be9c08e514.zip FreeBSD-src-26d140a225ce9d9a3a4ef4765c2345be9c08e514.tar.gz |
Link drti.o with a PIC version of libelf. This is needed because
drti.o depends on libelf and this avoids linking every other drti.o
program (namely programs with USDT probes) with libelf.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'cddl/lib/drti')
-rw-r--r-- | cddl/lib/drti/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cddl/lib/drti/Makefile b/cddl/lib/drti/Makefile index ffd161c..57b161f 100644 --- a/cddl/lib/drti/Makefile +++ b/cddl/lib/drti/Makefile @@ -8,13 +8,20 @@ FILESOWN= ${LIBOWN} FILESGRP= ${LIBGRP} FILESMODE= ${LIBMODE} FILESDIR= ${LIBDIR}/dtrace -CLEANFILES= ${FILES} +CLEANFILES= ${FILES} ${FILES}.tmp CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \ -I${.CURDIR}/../../../cddl/compat/opensolaris/include \ -I${OPENSOLARIS_USR_DISTDIR}/head \ -I${OPENSOLARIS_USR_DISTDIR}/lib/libctf/common \ -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ - -I${OPENSOLARIS_SYS_DISTDIR}/uts/common + -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ + -DPIC -fpic + +.c.o: + ${CC} ${CFLAGS} -c ${.IMPSRC} + mv ${FILES} ${FILES}.tmp + ${LD} -o ${FILES} -r ${FILES}.tmp ${LIBELF_PIC} + rm -f ${FILES}.tmp .include <bsd.prog.mk> |