delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/31/07:04:13

X-Recipient: archive-cygwin AT delorie DOT 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:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=Sup
9MpkkyS0XzVmFg2ZT2GYQnOuP8HVX3qF/BorAshUS79xIT0ZX0b0scj+PAJrUZHs
L/Ly09C3CO225i7TZEwnIN5qEqgSAibIyco178W2UjCQl0rZ2vsDezlWACxQdxAs
6pAuDLJw+A4EAYYa9r/Qp0nM4JDjAp6Aj3ez58TU=
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:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=nh8J196i3
Iq62AJA7q9PERfuA94=; b=EPLNpuPobb7fNJeYyTpvak63pxyaINUKqZ3IOEZ7K
BXoJRqJDVupnSXZqTvCGoaPBNAc4bewPc1q927M/96utAPNBaIaJcrYoJzTCh75d
cxXiBDAXdtz7j9/aIWR3x0caIYPCn+yt0gnBKHyv+cJ1XEjiRcHKQeVvLDuSnr8I
Bk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wg0-f48.google.com
X-Received: by 10.194.57.67 with SMTP id g3mr24843325wjq.60.1409483026607; Sun, 31 Aug 2014 04:03:46 -0700 (PDT)
From: =?iso-8859-2?B?SnVo4XN6IMFk4W0=?= <jadaml AT gmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: cross-compiling to Linux?
Date: Sun, 31 Aug 2014 13:03:44 +0200
Message-ID: <016b01cfc50b$3c3d5bc0$b4b81340$@gmail.com>
MIME-Version: 1.0

Hi everyone,

When I was developing one of my program, I've tried to compile it under
Cygwin, and for some reason Cygwin's g++ always compiled it without
extension (and maybe an ELF executable?), so I had to create an explicit
rule to compile it with the EXE extension.

However just before I also installed MinGW so I can see what libraries does
that includes, I've noticed that Cygwin created an ELF executable (utterly
useless in Windows) however I deleted it without a second thought and just
then I've realized that I should've tried whether it runs on a Linux
machine. (My assumption was that it possibly was a PE executable with an ELF
header.) Now I've installed MinGW, and right after that, Cygwin also
generates proper PE executables for Windows, and can't seem to force it to
compile it as ELF executable despite all it took was to omit the EXE
extension.

Was this the proper behavior for Cygwin that MinGW changed?
What could possibly have MinGW did to change this behavior?
Is it *really* possible to cross-compile to Linux with Cygwin-Not that it
isn't possible, but whether is it possible by a basic setup or does Cygwin
provides a special package for that (or neither)?

Thank you for your response in advance,
Adam


--
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

- Raw text -


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