From owner-freebsd-toolchain@freebsd.org Sun Oct 29 07:55:51 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D349E5CC03; Sun, 29 Oct 2017 07:55:51 +0000 (UTC) (envelope-from eddy.petrisor@gmail.com) Received: from mail-wr0-x235.google.com (mail-wr0-x235.google.com [IPv6:2a00:1450:400c:c0c::235]) (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 ED89F70365; Sun, 29 Oct 2017 07:55:50 +0000 (UTC) (envelope-from eddy.petrisor@gmail.com) Received: by mail-wr0-x235.google.com with SMTP id l1so9612732wrc.3; Sun, 29 Oct 2017 00:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MlNtD5ZIF0gSAFXYG9Ri5MPoSH6wWWQ0nkNvpfU+8+M=; b=uFcUotkR0UnUYEdQpMSH2dnk4ZAYlq34i7CPFVCrHUZ/WOBiiN3E6Ztv8beNvv2YT2 MNHzUYiS5ef11hic0ofVfPnFqwLjeOlvM3XGnefeR3EUzC9INbrDwRsEwuDZDxVFoG9Z 2j487/HcJ0xbRgbu1KNBVTOYlBs0FgXoiYzJOXctwUugJgcy96rDlSHZzHvPsklwJfXP DguidS6faTIZFbYNUniOhI6lopDREkT4gV4+SYbWSw6T64BDD0oa89ZD3Y9zFjjl+tV0 qvJMOaqrFyK3g5xMtInL+WMK+vrQYmU5bW7ixlebOEtN1IdWCAvvCHmXIhr1I4j8okUU 7iZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MlNtD5ZIF0gSAFXYG9Ri5MPoSH6wWWQ0nkNvpfU+8+M=; b=LOV7zkPJd/yqy//FWaFr0vjJk5vTSftLl4ikwRmAoqr7tfIpzolw0kFJZT8uKgtIzV JivUOLtscuZYuqLqbDi2agdOMwdYHa2L1gl8Ra2Lczn846O0cX307SLMlemUUeJZKkn+ 5mVsxc88rxkFRax9uPtSvy+rTrMckHPC40PjDmGUOBns/zJ0ZGPXrZBlbl19ElyL3Svh RL5bYnpE9OTIuh9TeTfhqzWpI7MC2l5WgkehUPPPzhrT6I8GX8Plt8MtvPlCCIcSSnHw CFmRh/1mKrT6OYy4Ul3TmTynaVkU4beO03mYa73Ya5vmOtLn0+HRVFjKLQu1ZTKk9Jw5 2l4g== X-Gm-Message-State: AMCzsaUeuK4+TbJWOj5UmNi2jG6n9fLX4YC9il/zYVGIT28N6AWNkMoF MKvrmhM0Nb2VV6RhbJI8+oRVtFGjUgl8LCSHTpw= X-Google-Smtp-Source: ABhQp+SJar8iLCkfFJAdrBuuAYLap4DjmFzCfCMm4MiWVsDUbB70+8ceuM+h2lG198E8DaVOfFMLPWtcMo03WDPPRLY= X-Received: by 10.223.165.7 with SMTP id i7mr4304037wrb.155.1509263749378; Sun, 29 Oct 2017 00:55:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.173.129 with HTTP; Sun, 29 Oct 2017 00:55:48 -0700 (PDT) In-Reply-To: References: <7CAFD8CC-BDA1-4E89-BD7E-D0089E27036F@dsl-only.net> From: =?UTF-8?Q?Eddy_Petri=C8=99or?= Date: Sun, 29 Oct 2017 09:55:48 +0200 Message-ID: Subject: Re: lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'? To: Mark Millard Cc: Dimitry Andric , freebsd-arm@freebsd.org, FreeBSD Toolchain Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Oct 2017 07:55:51 -0000 2017-10-29 9:51 GMT+02:00 Eddy Petri=C8=99or : > Various linux distributions > > patch uname and its -p code (for > example). Even for the same kernel > being in use, giving different > textual results. -m seemed more > stable in my limited testing. > Everyplace that uses uname probably > needs to be reviewed for a possible > re-work. BUILD_ARCH and its use is > an example. > > (format correction, this should have appeared as if said by Mark, but by myself) Yes, I have some places where I made MACHINE* related changes, and a wrapper script to enforce some things to be correct for the Linux-host--FreeBSD-target scenario. See this wrapper, for example: https://github.com/eddyp/freebsd/blob/linux-fixes/Linux.sh Eddy Petri=C8=99or