Unreviewed libgcc build patch

Submitted by Rainer Orth on June 21, 2011, 2:28 p.m.

Details

Message ID yddhb7ji7ie.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth June 21, 2011, 2:28 p.m.
Paolo Bonzini <bonzini@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  <ro@CeBiTec.Uni-Bielefeld.DE>

	* shared-object.mk (c_flags-$o): Save c_flags.
	($(base)$(objext)): Use it.
	($(base)_s$(objext)): Likewise.

Patch hide | download patch | download mbox

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