From owner-freebsd-threads@FreeBSD.ORG Fri Jun 27 07:15:07 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A205937B401; Fri, 27 Jun 2003 07:15:07 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id D16BD43FE9; Fri, 27 Jun 2003 07:15:06 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h5REF6DZ024278; Fri, 27 Jun 2003 07:15:06 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h5REF6hn044434; Fri, 27 Jun 2003 07:15:06 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h5REF6tb044433; Fri, 27 Jun 2003 07:15:06 -0700 (PDT) (envelope-from marcel) Date: Fri, 27 Jun 2003 07:15:06 -0700 From: Marcel Moolenaar To: Ruslan Ermilov Message-ID: <20030627141506.GB43189@dhcp01.pn.xcllnt.net> References: <20030627075607.GA42198@dhcp01.pn.xcllnt.net> <20030627080550.GA48342@sunbay.com> <20030627085158.GA42350@dhcp01.pn.xcllnt.net> <20030627101441.GD48342@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030627101441.GD48342@sunbay.com> User-Agent: Mutt/1.5.4i cc: threads@freebsd.org Subject: Re: Obsoleting libc_r: How to create compat links X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2003 14:15:08 -0000 On Fri, Jun 27, 2003 at 01:14:41PM +0300, Ruslan Ermilov wrote: *snip* > 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. Good call. 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 -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net