Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <419E52C1.6030604@mvista.com>
Date: Fri, 19 Nov 2004 12:08:33 -0800
From: Peter Rehley <prehley@mvista.com>
User-Agent: Mozilla Thunderbird 0.9 (Macintosh/20041103)
MIME-Version: 1.0
To: Cygwin List <cygwin@cygwin.com>
Subject: Re: flex and dos source files.   How is flex built for cygwin
References: <419E499B.4040007@mvista.com> <6.1.0.6.0.20041119143038.04e7a008@pop.prospeed.net>
In-Reply-To: <6.1.0.6.0.20041119143038.04e7a008@pop.prospeed.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Larry Hall wrote:

>At 02:29 PM 11/19/2004, you wrote:
>  
>
>>Hi,
>>
>>We have a customer that is using flex under a custom version of cygwin that we provided them (with source).  The customer is having problems when their "*.l" files are in dos format.  Flex is taking the lines from the file and adding them into the lex.yy.c file untouched.  (i.e. they still have the \n\r at the end), and this causing problems later on.
>>
>>I tried using the version of flex that comes with the latest version of cygwin (1.5.12) and flex changes the \n\r to just \n, which makes everything work fine.  Good I thought since the version of flex we provide is not the latest.  I'll just recompile.
>>
>>But when I tried that with the latest flex (2.5.4a-3) I get the same behavior that the customer is seeing.  I get this behavior even if I compile on the latest version of cygwin.
>>
>>So, my question is what options are used for building flex?
>>    
>>
>
>
>Linking against /usr/lib/binmode.o perhaps?
>
>
>  
>
Tried on cygwin 1.5.12
make clean
make LDFLAGS="/usr/lib/binmode.o",

and
make clean
make LDFLAGS="-lbinmode"

but neither helped

>--
>Larry Hall                              http://www.rfk.com
>RFK Partners, Inc.                      (508) 893-9779 - RFK Office
>838 Washington Street                   (508) 893-9889 - FAX
>Holliston, MA 01746                     
>
>
>  
>


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

