From owner-freebsd-current@FreeBSD.ORG Mon Feb 2 16:06:08 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 43631455 for ; Mon, 2 Feb 2015 16:06:08 +0000 (UTC) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BB876980 for ; Mon, 2 Feb 2015 16:06:07 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id q1so42395936lam.2 for ; Mon, 02 Feb 2015 08:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=tptjADN+ysE9LAneXtVUMuE657XCIpjyGhoEWL5xD3M=; b=iIqBYkGePBkgXQYe8Q3l6Lgch5y5GRImL25oS3wnFv6qzkx9BlDIWieeVaKBWtrEFF 2evB5jRvLnIpeea90TiH07VXn8t6Eycdp1aBlZpXAA76c1eVwyRDq/GQ3vOCTRc6UOYT Bs9n/1Ah2iaZhaXy977+1+dGgMJHsvsn9Z+Co6GMmLFfXrtlLWZyymnD5fxVgA8SoEBe 88Fo/CC5k7r1jMy57YnYxw8pC5skB6CLyeXb2XEOYv7M/LwXmloOk+JZ+1gRBdOdjcsu aApJJxTsl92EPW1PPrZG2uOJemtfeX9xnhHHRKGTMBKzEFRTWbL7TeQQlQUC+Cu2OR8T SLvQ== MIME-Version: 1.0 X-Received: by 10.152.26.98 with SMTP id k2mr20466114lag.53.1422893165740; Mon, 02 Feb 2015 08:06:05 -0800 (PST) Sender: jlehen@gmail.com Received: by 10.114.80.4 with HTTP; Mon, 2 Feb 2015 08:06:05 -0800 (PST) In-Reply-To: <20150201202413.GA2132@reks> References: <20150201202413.GA2132@reks> Date: Mon, 2 Feb 2015 17:06:05 +0100 X-Google-Sender-Auth: ZS8a-RskMofwk_NxAoh1XrPyJVk Message-ID: Subject: Re: libc.so dependency on libssp_nonshared.a From: Jeremie Le Hen To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2015 16:06:08 -0000 Hi Gleb, On Sun, Feb 1, 2015 at 9:24 PM, Gleb Kurtsou wrote: > I came across some build issues in libc.so and SSP. > > libc.ldscript (aka libc.so) unconditionally includes @@LIBDIR@@/libssp_nonshared.a > > libssp* are not built if WITHOUT_SSP defined. > > ObsoleteFiles.inc doesn't mention libssp*. > > Consider WITHOUT_SSP=yes case. As soon as one does clean installworld > and/or removes stale libssp_nonshared.a ld fails to link anything > because of missing libssp_nonshared.a I think nowadays it would make sense to get it of WITHOUT_SSP altogether. This will turn this into a non-issue. > libc.so during buildworld (as found under /usr/obj) is symlink to the > actual shared library, but not ldscript. Is it intentional? I wouldn't > expect make -C /usr/src/bin/cat to match buildworld result closely > assuming src and world are in sync, but they seem to have different idea > of what libc is.. I don't remember the details except this was pretty twisted :). I don't work enough on this subject to keep it warm in my head and each time I need to go back to it, it takes me hours. The code is here if you want to give a try: http://svnweb.freebsd.org/base/head/share/mk/bsd.lib.mk?view=annotate#l335 -- Jeremie Le Hen jlh@FreeBSD.org