X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=LuImSrrLLvEk0RFo
	S3I5LVTckyXiuSV4ZccZoUdvzQ7tV23IH+GZcW6mOyXW1t2tnyLUXNU0PQbsaG31
	ULnIwpku7n6U7s/1g/uJ8Ra9hsAMqwFmF3lX+CPGvt2cBrVMr8qRPHmoFGp8DOlZ
	p2yth0BRJzGR0WsFQ1SP5wDF7TQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=1qBvGek4YkeKkhBkxS1Y9Q
	/ot4A=; b=Lw8mlxsyIAXwh79biYFdFXIvZlLd3d7Mi08CRwIAzdutrHRLZ7rt/D
	8suAJf6ogNzi74TKtO6t/30gQ/kud5yb3VJycs+jOf0hz74/KqQlRCx6lH/UEWiu
	pnaW4PM7HePVSi8m8ooW0Hr9g+BQt8j1rMM91lUxchRgxBn+jhBwE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=UD:en.wikipedia.org, enwikipediaorg, en.wikipedia.org, sk:en.wiki
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss@cs.umass.edu
Subject: Re: cygwin cross-compiler on linux host
References: <D62EB1B2-B346-4858-939A-BD143EC1FB57@gmail.com> <0020078C-BA19-4362-B0AD-DEAC472F674B@gmail.com> <EFFDB5CB-6B93-447B-BD45-F2F2F4463C83@gmail.com>
To: cygwin@cygwin.com
From: Eliot Moss <moss@cs.umass.edu>
Message-ID: <e62afb48-3f4b-c600-3cf2-5e4bb949ccac@cs.umass.edu>
Date: Sun, 28 May 2017 14:41:09 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <EFFDB5CB-6B93-447B-BD45-F2F2F4463C83@gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 5/28/2017 9:46 AM, Michele wrote:
>
>
> Il 27 maggio 2017 20:25:45 CEST, Michele <michele.bucca@gmail.com> ha scritto:
>>
>>
>> Il 27 maggio 2017 20:22:46 CEST, Michele <michele.bucca@gmail.com> ha
>> scritto:
>>> I'm running Linux Debian as host and i would like to create a
>>> cross-compiler like mingw that uses cygwin.dll as libc, so I can
>>> compile software with POSIX support such as bash..is this possible?
>>
>> the target of course is a WINDOWS (XP) system.
>
> I know Windows XP it is now unsupported by cygwin and I apoligize for making such a question, but let's suppose I want to make a cross-compiler targeting a newer supported version of windows what should i do? Let's remember that I'm using Debian as host and the Windows system is the target :)

I would start here:

https://en.wikipedia.org/wiki/Cross_compiler#GCC_and_cross_compilation

Since gcc runs on cygwin, the gcc source includes support for cygwin as a target.
You will need to *build* gcc from source on your Debian platform, with cygwin as
the target.  (Note that there are 32-bit and 64-bit versions of cygwin.)  As the
wikipedia page points out, you will need to build binutils from source as well,
again with cygwin as the target.

In principle this is straightforward, though of course in practice any number of
difficulties might arise ...

Regards - Eliot Moss

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

