On Wed, Dec 15, 2010 at 3:50 PM, gviewer <marlon...@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

Reply via email to