Paolo Bonzini <bonz...@gnu.org> writes:

> On 05/30/2011 05:43 PM, Rainer Orth wrote:
>> +md-unwind-support.h: config.status
>> +    if test -n "$(md_unwind_header)"; then \
>> +      echo "#include \"config/$(md_unwind_header)\"">  $@; \
>> +    else \
>> +      :>  $@; \
>> +    fi
>
> Can you add a default file md-unwind-none.h and use
>
> AC_CONFIG_LINKS([md-unwind-support.h:$md_unwind_header])
>
> instead of this (and instead of AC_SUBST'ing the variable)?

Sure, will do.

>> -libgcc-eh-objects += $(addsuffix $(objext),$(basename $(notdir 
>> $(LIB2ADDEHSTATIC))))
>> -libgcc-s-objects += $(addsuffix _s$(objext),$(basename $(notdir 
>> $(LIB2ADDEHSHARED))))
>> +libgcc-eh-static-objects := $(addsuffix $(objext),$(basename $(notdir 
>> $(LIB2ADDEHSTATIC))))
>> +libgcc-eh-shared-objects := $(addsuffix _s$(objext),$(basename $(notdir 
>> $(LIB2ADDEHSHARED))))
>> +
>> +$(libgcc-eh-static-objects) $(libgcc-eh-shared-objects): md-unwind-support.h
>> +
>> +libgcc-eh-objects += $(libgcc-eh-static-objects)
>> +libgcc-s-objects += $(libgcc-eh-shared-objects)
>
> These changes to the dependencies should not be necessary, libgcc does
> automatic dependency tracking.

That's what I thought, but my bootstraps failed since there wasn't any
dependency that triggered the creation of the header.  That's when I
introduced this explicit dependency.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to