From nobody Wed Feb 28 16:50:59 2024 X-Original-To: freebsd-toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TlL3M2DpWz5BvjW for ; Wed, 28 Feb 2024 16:51:27 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TlL3M04nKz436W for ; Wed, 28 Feb 2024 16:51:27 +0000 (UTC) (envelope-from 6yearold@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-787ac650561so290218685a.3 for ; Wed, 28 Feb 2024 08:51:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709139085; x=1709743885; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GP1CwNfnKtjvNA+nlWXiUjuiqmZ4mO+KHdQ5pA6fUvg=; b=enEvaust/lbtQikyhdwPpPajhXOP9tfSU2DzCiaioERTkQkHElCAFkI6Z4ms35Ri/4 oz6NubmrW64LqrkQ0nDzB4Hx3MY7zg1exeNLpTilhCjBzYI5oDfC+NqBlfdmkupA3jLt mVu0Ct25UdVK1rKj1hZspDVM1kYuKvqIsDuRr99ssnIOa5klVinkTuo7qbJF9Ndr5Ki9 rIn2sA4k8/AVQYVxmpAk/RqTk0GCM8Qs3EKP8XR5Nn/qUtXlGalY9XdhZuuWXUPtFzTA UQ2+7YRU+OBjYPMD0hBz15Np8VE7xo4qJFbU5fPEaQYme2+EP127M331NcFUoCuDZEou x5lw== X-Gm-Message-State: AOJu0YxpVWr9eDfI6qEVcOUajoTNvaoV8NjID99AfB1XigQXViD4oE2e LGA1B775qkbvwhJidUHIbgS+ZkABEUGrPM1xVO1qE6En1/2DQ/dmAKo6mzU37fY= X-Google-Smtp-Source: AGHT+IEXaN+WDs3KeqKgyjeFeJ7Vkxnm/DpmpDeQfsAWM/hv6UpSXxzOuRisputC4g7TrehB47luOA== X-Received: by 2002:a05:620a:444b:b0:787:ee54:e08c with SMTP id w11-20020a05620a444b00b00787ee54e08cmr3977796qkp.27.1709139085465; Wed, 28 Feb 2024 08:51:25 -0800 (PST) Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com. [209.85.222.53]) by smtp.gmail.com with ESMTPSA id m16-20020ae9e010000000b00787f5d1546fsm309855qkk.64.2024.02.28.08.51.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 08:51:25 -0800 (PST) Received: by mail-ua1-f53.google.com with SMTP id a1e0cc1a2514c-7dad2d1c9edso720770241.1 for ; Wed, 28 Feb 2024 08:51:25 -0800 (PST) X-Received: by 2002:a1f:dac2:0:b0:4d3:3bdc:801b with SMTP id r185-20020a1fdac2000000b004d33bdc801bmr138285vkg.8.1709139085035; Wed, 28 Feb 2024 08:51:25 -0800 (PST) List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Gleb Popov Date: Wed, 28 Feb 2024 19:50:59 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: LTO To: void Cc: freebsd-toolchain@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4TlL3M04nKz436W On Wed, Feb 28, 2024 at 5:24=E2=80=AFPM void wrote: > > Hi, > > I'm trying building ports with LTO in poudriere with this > in the makefile: > > ### > OPTIONS_SET+=3DLTO > OPTIONS_SET+=3DLTO_BOOTSTRAP This will only enable the LTO option, if the port has it. The proper way to enable LTO for all ports is WITH_LTO=3Dyes > [2] does the poudriere jail need to be built with LTO? No, ports features can be switched on a per-port basis. > [3] does the host OS need to be built with LTO (and anything else?) No. > Thin LTO or thick LTO? Take a look at Mk/Features/lto.mk to get an idea how this switch affects po= rts.