delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/01/02:28:45

X-Spam-Check-By: sourceware.org
Date: Fri, 01 Dec 2006 20:28:34 +1300
From: Danny Smith <dannysmith AT clear DOT net DOT nz>
Subject: RE: cygwin -mno-cygwin AC_CHECK_SIZEOF
In-reply-to: <Pine.GSO.4.63.0611302348180.17676@access1.cims.nyu.edu>
To: cygwin AT cygwin DOT com, "'Eric Blake'" <ebb9 AT byu DOT net>
Cc: bob_rossi AT cox DOT net
Message-id: <000001c7151a$5096edb0$af4861cb@anykey>
MIME-version: 1.0
X-Mailer: Microsoft Outlook, Build 10.0.2627
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

> 
> Or have autoconf use some other tool that does not do binary 
> processing
> (e.g., awk or tr) instead of cat, which would enable the text mount
> solution.
> 	Igor

Or make cygwin-pc-i686-gcc -mno-cygwin foo.c mean something subtly but
significantly 
different from mingw32-pc-i686-gcc foo.c by adding a startfile object
that does this

int _CRT_fmode = _O_BINARY

to -mno-cygwin gcc specs.

This will make binmode default, even for stdin/stdout/stderr, and let
all the
cygwin binmode tools work just dandy

I've run into same problem as Bob Rossi myself, while building gcc's
libgomp (#defines in header file are generated using AC_CHECK_SIZE_OF)
for mingw, and I'm stll looking for acceptable solution too.
 
Danny




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