delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
From: | "Dave Korn" <dk AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: zsh and line breaks |
Date: | Tue, 6 Apr 2004 16:20:21 +0100 |
MIME-Version: | 1.0 |
In-reply-to: | <20040406134902.GA18138@cygbert.vinschen.de> |
Message-ID: | <NUTMEGBtRDhjok2Iht800000390@NUTMEG.CAM.ARTIMI.COM> |
X-OriginalArrivalTime: | 06 Apr 2004 15:20:22.0359 (UTC) FILETIME=[ADB14670:01C41BEA] |
> -----Original Message----- > From: cygwin-owner On Behalf Of Corinna Vinschen > Sent: 06 April 2004 14:49 > On Apr 6 13:54, Dave Korn wrote: > > > case "$host" in > > > *-*-cygwin*) > > > LIBS="$LIBS /usr/lib/textreadmode.o";; > > > esac > > > > > > in configure.ac would do it then. > > > > > > You could take it one step further: combine that with > using the --wrap > > option to ld > > > > case "$host" in > > *-*-cygwin*) > > LIBS="$LIBS /usr/lib/textreadmode.o";; > > LDFLAGS="$LDFLAGS --wrap _main" > > esac > > > > and textreadmode.o has a function __wrap_main that sets the > textmode and > > calls __real_main. That way the entire cygwinization can be done in > > configure and no need for #ifdefs anywhere. OTOH it's a bit obscure > > maintenance-wise. > > And what's the gain? My above configure.ac snippet is > everything needed > so what's the additional -wrap for? > Oviously I haven't followed all the implications here. I thought there was a function that needed to be called early in main (..) for cygwin. Looking back on it and reading between the lines it now seems that it only needs to be linked in and is somehow called automagically. 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 |