This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: mingw-targeted cross-compiler question
Thanks for explanation. I checked the Make file, and here it is:
CFLAGS = -O3 -Wimplicit
...
gcc -mno-cygwin -g -Wl,--add-stdcall-alias -Wl,--export-all-symbols
${BRILL_INCLUDES} -I ${JAVA_HOME}/include/ -I ${JAVA_HOME}/include/win32
-shared -o lib/BTagger.dll ${BRILL_JAVA_BASE}/*.c ${BRILL_SRC}
This is a Java wrapper around a C/C++ library. Can you help have a look and
see if there is an easy change to the "gcc -mno-cygwin ..." part? I am using
Windows 7 64-bit machine.
Thanks.
NightStrike wrote:
>
> 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
>
>
>
--
View this message in context: http://old.nabble.com/mingw-targeted-cross-compiler-question-tp30467239p30467974.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
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