From: Rainer Orth Date: Tue, 21 Jun 2011 14:26:13 +0000 (+0000) Subject: shared-object.mk (c_flags-$o): Save c_flags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4d48a4dd55f96d6f7bb11b4efcc1ee7d8af0147;p=gcc.git shared-object.mk (c_flags-$o): Save c_flags. * shared-object.mk (c_flags-$o): Save c_flags. ($(base)$(objext)): Use it. ($(base)_s$(objext)): Likewise. From-SVN: r175262 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 08d8ef9a6a7..fa9245dba11 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2011-06-21 Rainer Orth + + * shared-object.mk (c_flags-$o): Save c_flags. + ($(base)$(objext)): Use it. + ($(base)_s$(objext)): Likewise. + 2011-06-21 Bernd Schmidt * Makefile.in (lib2funcs): Add _clrsbsi2 and _clrsbdi2. diff --git a/libgcc/shared-object.mk b/libgcc/shared-object.mk index 65171b6aa32..d9ee922c96b 100644 --- a/libgcc/shared-object.mk +++ b/libgcc/shared-object.mk @@ -6,13 +6,15 @@ iter-items := $(filter-out $o,$(iter-items)) 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