Paolo Bonzini <bonz...@gnu.org> writes: > Ok without the commented info evaluation, and with the per-target > macro renamed to c_flags-$<.
Here's what I've installed after rebuilding libgcc and verifying that -fexceptions still isn't applied to enable-execute-stack.c. Thanks. Rainer 2011-06-21 Rainer Orth <r...@cebitec.uni-bielefeld.de> * shared-object.mk (c_flags-$o): Save c_flags. ($(base)$(objext)): Use it. ($(base)_s$(objext)): Likewise. Index: libgcc/shared-object.mk =================================================================== --- libgcc/shared-object.mk (revision 175260) +++ libgcc/shared-object.mk (working copy) @@ -6,13 +6,15 @@ base := $(basename $(notdir $o)) +c_flags-$o := $(c_flags) + ifeq ($(suffix $o),.c) $(base)$(objext): $o - $(gcc_compile) $(c_flags) -c $< $(vis_hide) + $(gcc_compile) $(c_flags-$<) -c $< $(vis_hide) $(base)_s$(objext): $o - $(gcc_s_compile) $(c_flags) -c $< + $(gcc_s_compile) $(c_flags-$<) -c $< else -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University