Obsoleting libc_r: How to create compat links
Ruslan Ermilov
ru at freebsd.org
Fri Jun 27 07:47:44 PDT 2003
On Fri, Jun 27, 2003 at 07:15:06AM -0700, Marcel Moolenaar wrote:
> How's this:
>
> 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 14:11:33 -0000
> @@ -26,4 +26,16 @@
> .include "${.CURDIR}/sys/Makefile.inc"
> .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
>
> +.if ${MACHINE_ARCH} == "ia64"
> +.if !defined(NOLIBC_R)
> +SYMLINKS+=libthr.a ${LIBDIR}/libc_r.a
> +.if !defined(NOPIC)
> +SYMLINKS+=libthr.so ${SHLIBDIR}/libc_r.so
> +.endif
> +.if !defined(NOPROFILE)
> +SYMLINKS+=libthr_p.a ${LIBDIR}/libc_r_p.a
> +.endif
> +.endif
> +.endif
> +
> .include <bsd.lib.mk>
>
Looks OK, except that I'd swap the NOLIBC_R and MACHINE_ARCH checks,
as the former is more specific to the subject. Sorry in advance for
nitpicking. ;)
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/865f1add/attachment.bin
More information about the freebsd-threads
mailing list