This is the mail archive of the
mailing list for the Cygwin project.
cross-compiling to Linux?
- From: Juhász Ádám <jadaml at gmail dot com>
- To: <cygwin at cygwin dot com>
- Date: Sun, 31 Aug 2014 13:03:44 +0200
- Subject: cross-compiling to Linux?
- Authentication-results: sourceware.org; auth=none
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
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,
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple