From owner-freebsd-hackers@freebsd.org Thu Aug 2 17:10:20 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0BDED106CC93 for ; Thu, 2 Aug 2018 17:10:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 80487711D9 for ; Thu, 2 Aug 2018 17:10:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22d.google.com with SMTP id 72-v6so4505210itw.3 for ; Thu, 02 Aug 2018 10:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6OCOK9cPAFem7vP2Y0vS7mJ7qagqDAnFmbV/32Zr9uY=; b=rhinbWRevDWUl8j0O/6AxqL0LpAcCe5vYOZSt8d+/d8zGb59wKiFxxWm9RMFR23tIX tDJ5MuHfbIxEiRL1Lt3feLWrmvcdFB+CWbbZVjSa/1q7L/NAvWkNEEwq0PQAHXEA8SRX aHGbWHYS7NuhOeMmck3/aUVg2E83UzzpybisLjRFCJxzhHJc689Z+XDtFZmp4VDULZpv kEC6GF03h6cROangwMAMPS20NEaRChSBwO3uf+6tz4PZWjo2llaHGpAOYdNmI9cea8m3 tPTaTru3bCCutre9VYk9cqkAeRV6sS/HL8nUbWsgZ7DPa5IBbYiDUvAU2unWhu5goOsS aInw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6OCOK9cPAFem7vP2Y0vS7mJ7qagqDAnFmbV/32Zr9uY=; b=i6b2LPiEmPzkfH0oVjrNVI7IK3ZoeNRGEjHt6Je4s8vNAxf7dbJh9Ivty61st79nFa lTmeQRM5edEryfkVsPqTNTKD/kMcloux6AnP4EGdO5XgHVCKi4FoIToJUr0r1jBKAZiz qQsfvEzoVc6cWlcDB6PcSw43yckBYdAt+nMluk+o2zK7/vVIJw9+whDDQj3oA+HQ709O kVnYlIJm9b3ACjzhz+8OD+Ajfku0+VeIgU31Wki3XhB19DCXh2wQK9fn4MW/IVXxJcg6 E7XyihNqgxxq+o/GOdGhSm8HpOUgQ5YuTKljo75r63CVsepb4Xak8LUwLV37dswnBBMv Xkpg== X-Gm-Message-State: AOUpUlGamE9DJczSPOWXF/KnSLHUDEXJFHBm06OLb0syFArpa05pEMgB vDr2vgJi50Xvxg4Dyny2kPRFjPL4GnzQe5jdpmp+ZQ== X-Google-Smtp-Source: AAOMgpcVS524TWaC/aKj/AGm54WlSHnoAjzp2/j/3nyPwCqN1VVDjHOyodrjetufbj2vyhPX0abQu4cULz2Xh7DujpI= X-Received: by 2002:a24:3ec3:: with SMTP id s186-v6mr3385173its.73.1533229818781; Thu, 02 Aug 2018 10:10:18 -0700 (PDT) MIME-Version: 1.0 References: <20180802153357.GA25687@spindle.one-eyed-alien.net> <7f143985-2ebb-210a-e314-0deebd3d9f5b@metricspace.net> In-Reply-To: <7f143985-2ebb-210a-e314-0deebd3d9f5b@metricspace.net> From: Warner Losh Date: Thu, 2 Aug 2018 17:56:16 +0100 Message-ID: Subject: Re: A few build system questions To: Eric McCorkle Cc: Brooks Davis , FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2018 17:10:20 -0000 On Thu, Aug 2, 2018, 5:19 PM Eric McCorkle wrote: > On 08/02/2018 11:33, Brooks Davis wrote: > > On Thu, Aug 02, 2018 at 11:17:06AM -0400, Eric McCorkle wrote: > >> Hi, > >> > >> I have a few questions about how to accomplish some things with the > >> build system. > >> > >> First, I want to create some libraries that exist only as static > >> archives, meaning no shared object (ex. libsomething.a, but no > >> libsomething.so) > > > > If it's something for use by only the base system PRIVATELIB= will > > do it (and change the name to libprivatesomethi.a). If you want to be > > broadly available outside the base system, NO_SHARED= should do it IIRC. > > If loader and kernel are able to use private libraries, then that is > probably better, actually. > They aren't. Src/stand depends on no objects in the system other than what is built in src/stand. What you are proposing is a non-starter. The loader Warner >