delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/11/09/05:44:32

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4A9AiW8Z3135307
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4A9AiW8Z3135307
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=KOvu+bI5
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82F3D3858C66
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1731149070;
bh=lQDj3FtTLDl4qNjjOyPd+iPf68UGPNt9pOp1jcZF9tc=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=KOvu+bI5qsnWSrp7mNIpaRdYijQsCvia4jPC1qBvD6tPdbeMtTh4sMN6dWqs8q0Bv
3qM1VSNae0qSjwoal6KoH+ugCw3EZCzWPJWmQN9NHr45pv/ric3bgtFktc/V0BUYjT
RoYlCWJ2WuVPpneic/5l2GDF8yP4bLzx+KeaHC54=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 639FC3858D21
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 639FC3858D21
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731149017; cv=none;
b=rJ3hE79Bj/OuH+JOZsbVUPqurJkVba8fyf9u4z9LcW1+oxF2tK7aQnEEy+yhziH+6QGDDtBIaOuO9zVOW9ojOsLnakseppzZnhlupemAgw8bfUfebfGnGKt0arzslddIhWqSw1P7RnFrHaBhSDFT3RPYx+UWUrOVCgHIQpAYlSg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1731149017; c=relaxed/simple;
bh=o38maJ6MZKK2TcT0yqv9kx1hT2b1RwmurRpnsGK/nXo=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=WHxwTv510wkI15RIg6lAJZc2QeNXzWAPoK/ggipjOx6hTFISiVVJsTn2i+u+qIEIidONz6nyQWThwmDShbHIS0h/s5s3rm+7yii1UnduRPi1/q9gvRcDLHRD8DJHVtKJxlOlUcL0/wjB7vBUheDYh2o4uRzAGSxb0tPz2ehX7bA=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1731149013; x=1731753813;
h=content-transfer-encoding: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=o38maJ6MZKK2TcT0yqv9kx1hT2b1RwmurRpnsGK/nXo=;
b=t/TNMHlX1ONlgrdFzepgcJVj2mvioYQctuUqdMSqOqUX9HdjKI1+mBHUPDgLEw2ERu
FZl9ai1qXFT89tQkAc/1NcqR0xsdnD8uUl1VA6jPBp7pl8k2l9TJi8Sppbn6FuSOOtZV
+H4jdQfE0His6efSPlq1Sj/uKVkjqubgFZ9dsYjwqveE0BKz02jADBS9Ut0tFIKdzgfW
4Ty1lMOuKYFG6IoOeXvnHtoQc0YdM5NqyECiROmmRAay0uFb55lwfmRyDJaz403YFsLw
0bsGJ+4MiTXgaNssXDuQTpbNLdD0k/xRJUXCtveT0TLQ7tiwH/qgE+seftI5/ovAuYxs
TQ1Q==
X-Gm-Message-State: AOJu0YwX98qGhomxhnrhBQq3HVImu8MVa4+J2x9uEwjzl+bpgDMHnXaG
mmWhJZh+bH9Pli62FA/IV7VanU5604uNlxNZ3OcCm9/NHeg+v7HT4p9tMnFJca+dSm8d8hWYMrc
Bn2YxTd27hy9tlEyWDQIRjSkPqXrsYQ==
X-Google-Smtp-Source: AGHT+IGoVaWl/vcTxk89Xefmu7/NLwLqFnkwCuW0M/XxDIk4S6D7nvT0ajvTjLWrLtZVMUNdh8JxsBZQdEtFPMBZbGg=
X-Received: by 2002:a17:907:944c:b0:a9a:8a4:e079 with SMTP id
a640c23a62f3a-a9eeff44660mr602085066b.31.1731149012466; Sat, 09 Nov 2024
02:43:32 -0800 (PST)
MIME-Version: 1.0
References: <CAHnbEG+v9hbLoiucVjg4UqLf8Lc5ehUVDM8oEFQpT4wWpVf1zQ AT mail DOT gmail DOT com>
<EE86CE0E-BCD4-40A1-BB29-3F6E9D4B6288 AT unified-streaming DOT com>
In-Reply-To: <EE86CE0E-BCD4-40A1-BB29-3F6E9D4B6288@unified-streaming.com>
Date: Sat, 9 Nov 2024 11:42:55 +0100
Message-ID: <CAHnbEGKyXRToR6XnxBAfvEUfTZ0ru+BVqkB7h8o4OVOMHbi62Q@mail.gmail.com>
Subject: Re: Testing for 32bit or 64bit Cygwin in Makefile?
To: cygwin AT cygwin DOT com
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Sebastian Feld via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Sebastian Feld <sebastian DOT n DOT feld AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 4A9AiW8Z3135307

On Wed, Nov 6, 2024 at 4:30 PM Dimitry Andric
<dimitry AT unified-streaming DOT com> wrote:
>
> On 6 Nov 2024, at 16:11, Sebastian Feld via Cygwin <cygwin AT cygwin DOT com> wrote:
> >
> > How can I test in a /usr/bin/make Makefile whether I am running on a
> > 32bit or 64bit Cygwin (not Windows kernel)?
>
> Usually in a shell you use "uname -m", or with bash specifically, the $HOSTTYPE variable.
>
> However in GNU make you should be able to use the internal variable $(MAKE_HOST). On my Cygwin installation, this gives the value "x86_64-pc-cygwin". Since I do not have any 32-bit Cygwin installation, I cannot tell you what the exact value is, but my guess would be "i386-pc-cygwin", or something like that.

I need something which works with bsdmake (/usr/bin/bmake in Cygwin)
and GNU /usr/bin/make. Moreover, how would a test statement for this
look like in the Makefile? bmake doesn't have ifeq ()

Sebi
-- 
Sebastian Feld - IT secruity expert

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019