From owner-freebsd-ports@freebsd.org Tue Mar 27 22:21:38 2018 Return-Path: Delivered-To: freebsd-ports@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 88369F649D9; Tue, 27 Mar 2018 22:21:38 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1B95986322; Tue, 27 Mar 2018 22:21:38 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x22f.google.com with SMTP id q84so1119324iod.10; Tue, 27 Mar 2018 15:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=C5okqPpCN6Vy6lfZ+2Si8dSZovPG6UVeDRk7RRbc+4U=; b=XdQInpDhib4KYkjWO7kyJ4cI0S7a+RL3XDQz+27aF/uFvCnAeyzDw6EWjXXMBnuZWq fLHiEHoHyDobhMUpgG7Vull54yCTnFb8Iz3ZlaIZ8TW4a+faCUde8hX9OnyrAPOCkWPr sYhiEeWY4dDQIzdTItA3Q0r5BUeelMCFDVGvqO2kJrQbXg8b/hmrXAJSac7aPGKyN+G4 RSwVBxSQ391J50lLCupbHdycCWT/AK/kk0zrV1+kkJ3IpKsNKyChshc+SUaRQF0wn90x V/LU0Y2NU3sKZzxR3voICeibNwK0s+TU0HpiZpz9XhcdK5zrO7uycaQ8OFAAsqhBQknA gCmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=C5okqPpCN6Vy6lfZ+2Si8dSZovPG6UVeDRk7RRbc+4U=; b=W9J1MX7651pGFpW6xClcRiHOcHkWPoXKe/pfDc2Y3SSOIi9o3FsPGDN1h3NL1ThilC w4xZZyf/D5j8kJ0/rzCKgPReMgg9NGO9RLzUQ9FwKWdbR6HTes2tBNWfbAjZJgukZf2F 5oziaU5xxY+Nj5kmsmGXQMJOmbzISO9v7eryjzltx6UVXat7VScNCbtVwnKeL0xIym1t a8231VBDvqN/vsxYBglWIqh47tHs4oYtb5oKvfzAKEgJtBegvldn5ZVT4EjTiS2oaeFs hR+x83H96tDNpOP1unTIpdTR4++wk5XXLqkMCAw/QsWVia7hsUXVR/6Zqh7x6LonngPf rAwg== X-Gm-Message-State: AElRT7GfFs2pd3kP5CMSK1DYLMbYD03xIHTddflg1EDBLOipeEbXQdRl KrazB/UUyewJuXP6WTta8unC9Wp4cwCIYpp2812nE+Wx X-Google-Smtp-Source: AIpwx48Jc1EcR1Ef7/lfyByFnxObQL6hyXe93hUj3k195IqtVbcXabBLoHbAzbnfMFaWFBKwSezlG6512SAD41eOt28= X-Received: by 10.107.178.14 with SMTP id b14mr14150120iof.294.1522189297416; Tue, 27 Mar 2018 15:21:37 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.130.197 with HTTP; Tue, 27 Mar 2018 15:21:16 -0700 (PDT) In-Reply-To: References: From: Ed Maste Date: Tue, 27 Mar 2018 18:21:16 -0400 X-Google-Sender-Auth: LbqtM0Nwt5v0L9q3Yiin9bwl9ow Message-ID: Subject: Re: Heads-up: linker (lld) changes for amd64 coming soon To: Antoine Brodin Cc: "freebsd-toolchain@FreeBSD.org" , FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 22:21:38 -0000 (Moved from -current to -ports) On 27 March 2018 at 13:15, Ed Maste wrote: > > Fair enough - this was the reason I sent the email. I've now gone > through and submitted a PR for for each failure that did not already > have one. I've also added LLD_UNSAFE to a few ports where where it was > straightforward. Via tobik's commit to lang/myrddin (r465725) I discovered BINARY_ALIAS=ld=ld.bfd, which is a usable workaround for some ports which don't honour $LD or -fuse-ld=bfd in CFLAGS. As you point out in reply to my r465755 BINARY_ALIAS alone is not sufficient, because arm64 does not provide ld.bfd by default and LLD_UNSAFE automatically brings in ports binutils if /usr/bin/ld.bfd does not exist. So we need both LLD_UNSAFE and BINARY_ALIAS. Should we just have LLD_UNSAFE also set BINARY_ALIAS=ld=ld.bfd?