Date: Fri, 27 Jun 2003 13:14:41 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Marcel Moolenaar <marcel@xcllnt.net> Cc: threads@FreeBSD.org Subject: Re: Obsoleting libc_r: How to create compat links Message-ID: <20030627101441.GD48342@sunbay.com> In-Reply-To: <20030627085158.GA42350@dhcp01.pn.xcllnt.net> References: <20030627075607.GA42198@dhcp01.pn.xcllnt.net> <20030627080550.GA48342@sunbay.com> <20030627085158.GA42350@dhcp01.pn.xcllnt.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--OZkY3AIuv2LYvjdk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 27, 2003 at 01:51:58AM -0700, Marcel Moolenaar wrote: > On Fri, Jun 27, 2003 at 11:05:50AM +0300, Ruslan Ermilov wrote: [...] > > So, the only useful option that is left is to symlink the static > > and dymanic libraries (.a and .so, but not .so.X), and this can > > be done in libc_r/Makefile using SYMLINKS (for MACHINE_ARCH of > > ia64 only). >=20 > In libc_r/Makefile? >=20 A typo. I meant libthr/Makefile. > Aren't we going to build libc_r first and then >=20 libthr, that is. You made the same typo. :-) > overwrite the intalled libc_r with symlinks? > What about: >=20 > Index: 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 > RCS file: /home/ncvs/src/lib/libthr/Makefile,v > retrieving revision 1.3 > diff -u -r1.3 Makefile > --- Makefile 23 May 2003 09:48:20 -0000 1.3 > +++ Makefile 27 Jun 2003 08:49:54 -0000 > @@ -10,6 +10,13 @@ > LIB=3Dthr > SHLIB_MAJOR=3D 1 > DEBUG_FLAGS=3D-g > + > +.if ${MACHINE_ARCH} =3D=3D "ia64" > +SYMLINKS=3D libthr.a ${SHLIBDIR}/libc_r.a \ > + libthr.so ${SHLIBDIR}/libc_r.so \ > + libthr_p.a ${SHLIBDIR}/libc_r_p.a > +.endif > + > CFLAGS+=3D-DPTHREAD_KERNEL -D_THREAD_SAFE > CFLAGS+=3D-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \ > -I${.CURDIR}/../../include >=20 This isn't so easy. You should check NOPIC (that can be set to globally suppress the rtld support) and NOPROFILE. Please see lib/libncuses/Makefile for a working example. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --OZkY3AIuv2LYvjdk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+/BkRUkv4P6juNwoRAik8AKCCrPcE9MjcKfS6DnsNMyc+I/vtRQCeLkSF mMmz7OxIhJrr1Y/oFS37zSc= =a02/ -----END PGP SIGNATURE----- --OZkY3AIuv2LYvjdk--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030627101441.GD48342>