Web lists-archives.com

Re: [Mingw-users] Is --build-x86-64-pc-linux-gnu correct for building a Win32 DLL ?




> From: "Cervinka, Mitch" <mitch.cervinka@xxxxxxx>
> Date: Wed, 15 Feb 2017 20:26:44 +0000
> 
> I am trying to build a Windows x86 DLL in MinGW using Eclipse(Mars) and GFortran.
> 
> However, I saw the following text in the console window after doing a "make all", and am wondering why it says --build=x86_64-pc-linux-gnu since I am not using Linux at all.  I am building on a Windows 10 (64-bit) PC, targeting 32-bit Windows.  Is the --build option correct for this scenario?  If not, how do I change it in the Eclipse settings?

The --build option says on what system was the compiler _built_.  By
contrast, the --host option says what is the target of the code
emitted by the compiler, and that is mingw32 in your case, which is
what you want.

IOW, the compiler was cross-compiled on GNU/Linux, but it produces
code for MinGW.  And that is OK.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe