delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/20/21:05:01

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
Message-ID: <3D127B91.A73E836E@mvista.com>
Date: Thu, 20 Jun 2002 18:04:17 -0700
From: Michael Eager <eager AT mvista DOT com>
Organization: MontaVista Software, Inc.
X-Accept-Language: en
MIME-Version: 1.0
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Problem creating files in make

I'm running cygwin-1.3.10 (0.51/3/2), bash 2.05a.0(3) and make 3.79.1.
I've replaces /bin/sh with bash.

GCC configure contains the following code:

# Make gthr-default.h if we have a thread file.
gthread_flags=
if test $thread_file != single; then
    rm -f gthr-default.h
    echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
    gthread_flags=-DHAVE_GTHR_D
fi


When I execute this under Cygwin, $thread_file is "posix" and the block
of code is being entered.  But gthr-default.h is not created.  An "ls"
after the "echo" will execute, but show no file created.

There are several things which I can do which will cause the file to
be created.  The simplest is to comment out the "rm".   Alternately,
creating a file before and/or after the "echo" will preserve the file.

Any idea what is causing this or how to fix it?

--
Michael Eager     eager AT mvista DOT com	408-328-8426	
MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA  94085

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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