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) -DSHARED $(c_flags) -c $<
+ $(gcc_s_compile) $(c_flags-$<) -c $<
else
$(gen-hide-list)
$(base)_s$(objext): $o
- $(gcc_s_compile) -DSHARED -c -xassembler-with-cpp $<
+ $(gcc_s_compile) -c -xassembler-with-cpp $<
endif