From patchwork Sun Mar 17 16:48:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Vanbever X-Patchwork-Id: 1057532 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=essensium.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=essensium-com.20150623.gappssmtp.com header.i=@essensium-com.20150623.gappssmtp.com header.b="S9LE1bFK"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44MldD31pBz9s9N for ; Mon, 18 Mar 2019 03:48:46 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 46AC487156; Sun, 17 Mar 2019 16:48:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aj2JmJkwB5Gj; Sun, 17 Mar 2019 16:48:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 48706871A6; Sun, 17 Mar 2019 16:48:43 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EE1DD1BF360 for ; Sun, 17 Mar 2019 16:48:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EB37E871A6 for ; Sun, 17 Mar 2019 16:48:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CC01KN3vbSOg for ; Sun, 17 Mar 2019 16:48:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8895587156 for ; Sun, 17 Mar 2019 16:48:34 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id m16so4955476edd.12 for ; Sun, 17 Mar 2019 09:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=w0aI82mWITzyxwn7OEXwgYrnbM9irW9JuJj+Wr+Zkmc=; b=S9LE1bFK1sEXCX8yYJGlqvoLB470OpFeRcAHuJTQViYIiaS96X2AGMs35R7UEIw1G4 s2ntZbAaLpPvlXyNHBEBVAjuYXfaqBOehXCF7IkfEp9+iNoFouSEChoNeXeDkqt7+3Ux BzgaFbHfoUfA3j7wyNO7lsx4rQRtxDwImvgy+xbsaz3sjELDUlGaEIke52XhRJ68jjz3 ftcy0JDbpe1J+hBDDUOdzxt2i9OxY27Q98CFju+Qr3WrsFTLJOUV62dQKkv8v2EtLkWy tYvVdPEYFbdsJkOg42qH96kAbuLLrr7jPAyDKIwqRR8rON+X6KVC09pPP0Df1UZrC+F5 KBDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=w0aI82mWITzyxwn7OEXwgYrnbM9irW9JuJj+Wr+Zkmc=; b=SbY/M870O9p9R32ui30ll+yA8pVqtFwa7Z/70OYFujp2WxIINen1yFsjiRNJm2LfcQ e1rN452dw8ulHYfy3OquTl1ucH6X2VTQMjNNei9mp+3YPkocPqnwh0NP+4sX1sx6qo0Q GTSxLhyI77Li26mm5duASdBsuHWiKtD3qWn8LzC+cOfSapgLoK+NQ5yu1TF9awp08mY2 FJDc7sdP7SBztLW9YP75DiDIr6q7RWuPkurRoKRsMDhu3a0rxfUrwo2Dgz69ILBOdrNL +Ta8YuT4OQZVMX6gopoH6v7orJLAJ0jL4Sp+Ji8MEbAy5RTxz2Q9ctr550zJTuIA5kxj MXCg== X-Gm-Message-State: APjAAAU4XOu+Vl248O0NZx7XIq/5W7fxtB5B7EnP9V0+/wVFpOjB8b1z dQxnfeDhe16Ck7Z5vOMdIp8Zv+PQ4B9nhA== X-Google-Smtp-Source: APXvYqyLteX3rXg+WkrgiCbBFnXdATJDXIGeenUlyEbBbgrECqCDilgOB2WVwrNt3lEgK7e4Qldqlw== X-Received: by 2002:a50:fc04:: with SMTP id i4mr9894461edr.126.1552841312961; Sun, 17 Mar 2019 09:48:32 -0700 (PDT) Received: from tank.lan ([109.132.255.157]) by smtp.gmail.com with ESMTPSA id y21sm2672000edb.54.2019.03.17.09.48.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Mar 2019 09:48:32 -0700 (PDT) From: Frank Vanbever X-Google-Original-From: Frank Vanbever To: buildroot@busybox.net Date: Sun, 17 Mar 2019 17:48:17 +0100 Message-Id: <20190317164817.13998-1-frank.vanbever@mind.be> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] support/cmake: Explicitly set CMAKE_SYSTEM X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Vanbever Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Some packages test for CMAKE_SYSTEM explicitly.[1] CMAKE_SYSTEM is comprised of CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_VERSION. It defaults to CMAKE_SYSTEM_NAME if CMAKE_SYSTEM_VERSION is not set.[2] At the point CMAKE_SYSTEM_NAME is set to "Linux" CMAKE_SYSTEM is already constructed. Setting it explicitly ensures that it is the correct value. [1] Fluidsynth https://github.com/FluidSynth/fluidsynth/blob/0cd44d00e1ec9a905d51163efde7b70ff8ae0ba3/CMakeLists.txt#L80 [2] https://cmake.org/cmake/help/git-master/variable/CMAKE_SYSTEM.html#variable:CMAKE_SYSTEM Signed-off-by: Frank Vanbever Acked-by: Yann E. MORIN --- support/misc/Buildroot.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/support/misc/Buildroot.cmake b/support/misc/Buildroot.cmake index 9f5f565255..761b6d7ae2 100644 --- a/support/misc/Buildroot.cmake +++ b/support/misc/Buildroot.cmake @@ -1,5 +1,6 @@ # Impersonate a Linux system. Afterall, that's what we are... set(CMAKE_SYSTEM_NAME Linux) +set(CMAKE_SYSTEM ${CMAKE_SYSTEM_NAME}) include(Platform/Linux) # Override problematic settings, to avoid RPATH against host lib directories.