delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=2.3 required=5.0 tests=AWL,BAYES_20,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RDNS_DYNAMIC,TVD_RCVD_IP,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <30467974.post@talk.nabble.com> |
Date: | Wed, 15 Dec 2010 13:10:55 -0800 (PST) |
From: | gviewer <marlonmin AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: mingw-targeted cross-compiler question |
In-Reply-To: | <AANLkTi=uDYKEfWTY+C2pg7=Boy8tmosi+JmBfyq=nSRJ@mail.gmail.com> |
MIME-Version: | 1.0 |
References: | <30467239 DOT post AT talk DOT nabble DOT com> <AANLkTi==cVmy4Z=Ya26Et=xVNE4NRDr9ouEHXcBuE24x AT mail DOT gmail DOT com> <30467813 DOT post AT talk DOT nabble DOT com> <AANLkTi=uDYKEfWTY+C2pg7=Boy8tmosi+JmBfyq=nSRJ AT mail DOT gmail DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 AT gmail DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |