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
This commit is contained in:
Rainer Orth 2011-06-21 14:26:13 +00:00 committed by Rainer Orth
parent 3801c801f3
commit e4d48a4dd5
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.
2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
* Makefile.in (lib2funcs): Add _clrsbsi2 and _clrsbdi2.

View File

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