Obsoleting libc_r: How to create compat links

Ruslan Ermilov ru at FreeBSD.org
Fri Jun 27 03:14:53 PDT 2003


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).
> 
> In libc_r/Makefile?
> 
A typo.  I meant libthr/Makefile.

> Aren't we going to build libc_r first and then
> 
libthr, that is.  You made the same typo.  :-)

> overwrite the intalled libc_r with symlinks?
> What about:
> 
> Index: Makefile
> ===================================================================
> 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=thr
>  SHLIB_MAJOR= 1
>  DEBUG_FLAGS=-g
> +
> +.if ${MACHINE_ARCH} == "ia64"
> +SYMLINKS=      libthr.a        ${SHLIBDIR}/libc_r.a \
> +               libthr.so       ${SHLIBDIR}/libc_r.so \
> +               libthr_p.a      ${SHLIBDIR}/libc_r_p.a
> +.endif
> +
>  CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE
>  CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \
>         -I${.CURDIR}/../../include
> 
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,
-- 
Ruslan Ermilov		Sysadmin and DBA,
ru at sunbay.com		Sunbay Software Ltd,
ru at FreeBSD.org		FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20030627/9f7df597/attachment.bin


More information about the freebsd-threads mailing list