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

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

Also a good start, though.  Thanks for this work.

Paolo

Reply via email to