mirror of git://gcc.gnu.org/git/gcc.git
static-object.mk (c_flags-$o): Save c_flags.
* static-object.mk (c_flags-$o): Save c_flags. ($(base)$(objext)): Use it. From-SVN: r181544
This commit is contained in:
parent
a0a49ff5a3
commit
0115d17f16
|
@ -1,3 +1,8 @@
|
||||||
|
2011-11-20 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* static-object.mk (c_flags-$o): Save c_flags.
|
||||||
|
($(base)$(objext)): Use it.
|
||||||
|
|
||||||
2011-11-18 Steve Ellcey <sje@cup.hp.com>
|
2011-11-18 Steve Ellcey <sje@cup.hp.com>
|
||||||
|
|
||||||
* Makefile.in (c_flags): Set to -fno-exceptions to build libunwind.
|
* Makefile.in (c_flags): Set to -fno-exceptions to build libunwind.
|
||||||
|
|
|
@ -6,10 +6,15 @@ iter-items := $(filter-out $o,$(iter-items))
|
||||||
|
|
||||||
base := $(basename $(notdir $o))
|
base := $(basename $(notdir $o))
|
||||||
|
|
||||||
|
# Copy c_flags to a rule-specific copy and use the copy, to avoid the
|
||||||
|
# following rules being affected by later changes to c_flags in the
|
||||||
|
# including file.
|
||||||
|
c_flags-$o := $(c_flags)
|
||||||
|
|
||||||
ifeq ($(suffix $o),.c)
|
ifeq ($(suffix $o),.c)
|
||||||
|
|
||||||
$(base)$(objext): $o
|
$(base)$(objext): $o
|
||||||
$(gcc_compile) $(c_flags) -c $< $(vis_hide)
|
$(gcc_compile) $(c_flags-$<) -c $< $(vis_hide)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue