* Makefile.in (CXXFLAGS): Use 'override' to correctly set flags to generate

dependencies when invoked from top-level make.
This commit is contained in:
Christopher Faylor
2005-09-02 17:12:37 +00:00
parent 8f36ef2f33
commit 414808f9e0
11 changed files with 40 additions and 21 deletions

View File

@ -34,9 +34,11 @@ extern "C" size_t getpagesize ();
void
heap_init ()
{
static int seen = 0;
/* If we're the forkee, we must allocate the heap at exactly the same place
as our parent. If not, we don't care where it ends up. */
seen++;
page_const = system_info.dwPageSize;
if (!cygheap->user_heap.base)
{
@ -73,11 +75,11 @@ heap_init ()
MEM_RESERVE, PAGE_READWRITE);
if (p)
break;
if ((reserve_size -= page_const) <= allocsize)
if ((reserve_size -= page_const) < allocsize)
break;
}
if (!p)
api_fatal ("couldn't allocate cygwin heap, %E, base %p, top %p, "
api_fatal ("couldn't allocate heap, %E, base %p, top %p, "
"reserve_size %d, allocsize %d, page_const %d",
cygheap->user_heap.base, cygheap->user_heap.top,
reserve_size, allocsize, page_const);