Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 2010 16:59:08 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Rui Paulo <rpaulo@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r211561 - head/cddl/lib/drti
Message-ID:  <20100821135908.GT2396@deviant.kiev.zoral.com.ua>
In-Reply-To: <201008211348.o7LDm55c070981@svn.freebsd.org>
References:  <201008211348.o7LDm55c070981@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--wPZoOnycM2UpxKV4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Aug 21, 2010 at 01:48:05PM +0000, Rui Paulo wrote:
> Author: rpaulo
> Date: Sat Aug 21 13:48:04 2010
> New Revision: 211561
> URL: http://svn.freebsd.org/changeset/base/211561
>=20
> Log:
>   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.
What is wrong with having libelf as dependency of the resulting
binary ?

>  =20
>   Sponsored by:	The FreeBSD Foundation
>=20
> Modified:
>   head/cddl/lib/drti/Makefile
>=20
> Modified: head/cddl/lib/drti/Makefile
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/cddl/lib/drti/Makefile	Sat Aug 21 13:42:12 2010	(r211560)
> +++ head/cddl/lib/drti/Makefile	Sat Aug 21 13:48:04 2010	(r211561)
> @@ -8,13 +8,20 @@ FILESOWN=3D	${LIBOWN}
>  FILESGRP=3D	${LIBGRP}
>  FILESMODE=3D	${LIBMODE}
>  FILESDIR=3D	${LIBDIR}/dtrace
> -CLEANFILES=3D	${FILES}
> +CLEANFILES=3D	${FILES} ${FILES}.tmp
> =20
>  CFLAGS+=3D	-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
> =20
>  .include <bsd.prog.mk>

--wPZoOnycM2UpxKV4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkxv26wACgkQC3+MBN1Mb4jkZQCdGoODTJaob18OTgg1/glmCNEU
EvEAmQHV6y5eflNoO6PLEishRNTIB7nP
=6RhA
-----END PGP SIGNATURE-----

--wPZoOnycM2UpxKV4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100821135908.GT2396>