delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/14/08:38:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <425E64A1.734F8EAC@dessent.net>
Date: Thu, 14 Apr 2005 05:40:01 -0700
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin on Mac: files in Virtual PC "shared folder"
References: <3d0b16f3b50f2acdb38a5479b9813ce4 AT dcs DOT warwick DOT ac DOT uk> <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050413180131 DOT 03cf4bf8 AT pop DOT prospeed DOT net> <6c620aa8a3e08df24c9dd17cf8f27c83 AT dcs DOT warwick DOT ac DOT uk> <425E4DC5 DOT C37692A5 AT dessent DOT net> <ec47f8eab5592f6d6ecef47a0fe1f48d AT dcs DOT warwick DOT ac DOT uk>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Ashley Ward wrote:

> I was a bit confused about it, though -- can such a setup *link* a
> final binary as well as compile?  Presumably then all the necessary
> libraries from each platform need to be available on the build
> platform?

You can link the final binary as long as you have import libraries.  As
far as I know, you don't need the actual libraries themselves since
you're not running the binary.  So for example, just install
winsup/w32api/lib*.a (or /usr/lib/w32api/lib*.a from an installed
Cygwin) into your cross compiler's library search path and the link
should work, assuming everything is setup right.  (You of course also
need a working set of headers too.)

If you check the Cygwin/X web site there's a nice guide on how to build
a cross toolchain for the purposes of building the XWin server (which
works equally well for general cygwin cross compiling.)

Brian

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019