| www.delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | RE: Question on static Cygwin-hosted applications |
| Date: | Tue, 25 Jul 2006 16:05:03 +0100 |
| Message-ID: | <004901c6affb$b4e4bf60$a501a8c0@CAM.ARTIMI.COM> |
| MIME-Version: | 1.0 |
| X-Mailer: | Microsoft Office Outlook 11 |
| In-Reply-To: | <44C630B8.10601@billgatliff.com> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| 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 |
On 25 July 2006 15:55, Bill Gatliff wrote:
Hi Bill!
> I'm in the odd place where I need a statically-linked GNU cross
> toolchain that runs under Win32. The idea is that I could then take my
> toolchain directory and move it over to another Win32 machine that
> doesn't have any special runtime environment previously installed and it
> Should Just Work.
>
> My understanding of Cygwin is that this isn't possible, was never
> possible, won't ever be possible:
>
> http://sourceware.org/ml/cygwin/2000-12/msg01150.html
>
> ... and I don't have a problem with that. Really. But as of today, is
> this still true?
Yep. A dll is still a dynamic link library, and cygwin is still a dll, and
in fact innately relies on being one, in order to be able to rely on such
features as DllMain being called every time a thread starts or dies.
You want to buid a mingw hosted compiler if you want it to run without
cygwin dll present. You can do that under cygwin with configure arguments:
--host=i686-pc-mingw32 --target=${your_x_target} CC='gcc -mno-cygwin' CXX='g++
-mno-cygwin'
as the cygwin native gcc supports x-compilation to mingw.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |