From owner-freebsd-toolchain@FreeBSD.ORG Tue Dec 16 15:46:32 2014 Return-Path: Delivered-To: freebsd-toolchain@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 46FF2337 for ; Tue, 16 Dec 2014 15:46:32 +0000 (UTC) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::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 11297274 for ; Tue, 16 Dec 2014 15:46:32 +0000 (UTC) Received: by mail-ig0-f171.google.com with SMTP id z20so7060917igj.16 for ; Tue, 16 Dec 2014 07:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=KlDcujQWdVdgE1t6GdwgFBJ+796TbwSxHYYfRHLe9Ak=; b=WcizPtk60TYw5KvrIuNYInMxQazX9S60h7zbLZFOovSZHA7ub2g1jatfM8k+UV2yFC /qgwSro3lmTtM0Opwx5wfnuqJaT67EwCcpDluWQTVLxSP6oyNu6Li989Br36Bw+V5C6U P8lYvWsKTOhl5vRr3Z8aap2QWi6fmKlHJ5SILD87MaRkcPCBpfMfOdBlbEbYowRlwnuF 8vIDQw1F5qeGJoSL9ca0o1v/c0h+2RLv+FtCv/MhIokaR2NGHamWiX9APbSf8w/A7b8U X7Hdxqh6IH8OaxzrvdYIyGKuO8XB29tODQVUJ153vN2SsBTAV1s1wIEC//JuD1FHRQ3u 055w== X-Received: by 10.50.45.100 with SMTP id l4mr3237426igm.40.1418744791507; Tue, 16 Dec 2014 07:46:31 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.0.85 with HTTP; Tue, 16 Dec 2014 07:46:11 -0800 (PST) From: Ed Maste Date: Tue, 16 Dec 2014 10:46:11 -0500 X-Google-Sender-Auth: 1E6obYW12MEg_975HRiFRv3GOkI Message-ID: Subject: Migration to dynamic libs for llvm and clang To: freebsd-toolchain@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2014 15:46:32 -0000 One of goals for the toolchain prior to the FreeBSD 11 branch is to create a libllvm.so and libclang.so for use by all of the LLVM family tools installed in the base system. This message is just a heads-up in case anyone has questions or comments on the idea. We currently build a large number of static libs for the llvm and clang components, which are reused in a number of tools in the LLVM family. The resulting binaries end up quite large, and as a group require a lot of disk space. For example, LLDB includes a copy of Clang, used as its expression parser. As a result, on my desktop /usr/bin/clang and /usr/bin/lldb are both 27MB. Over time we may add additional LLVM family tools (e.g., llvm-objdump), and this will help avoid excessive bloat as we do so. I expect libllvm.so and libclang.so will go in /usr/lib/private.