This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mingw-targeted cross-compiler question


On Wed, Dec 15, 2010 at 3:50 PM, gviewer <marlonmin@gmail.com> wrote:
>
> My cygwin may already install that package, then how to modify the flag in
> Makefile to compile.

That depends on the makefile.  Usually, there's a user-settable
variable called CFLAGS that you can use to customize things.  But
basically, with the cross compiler, you call a canonically named
executable instead of the normal one.  So for instance, to compile for
64-bit windows, instead of:

gcc -mno-cygwin  file.c

you would use:

x86_64-w64-mingw32-gcc  file.c

Make sense?

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]