Commit 70071e1707b035b9b750f4494ae53c6ab696c4fc

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent 2358a494

move cc-option definition to rules.mak

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 2 changed files with 6 additions and 6 deletions
Makefile.target
... ... @@ -21,12 +21,6 @@ endif
21 21  
22 22 PROGS=$(QEMU_PROG)
23 23  
24   -# cc-option
25   -# Usage: CFLAGS+=$(call cc-option, $(CFLAGS), -falign-functions=0, -malign-functions=0)
26   -
27   -cc-option = $(shell if $(CC) $(1) $(2) -S -o /dev/null -xc /dev/null \
28   - > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi ;)
29   -
30 24 HELPER_CFLAGS=
31 25  
32 26 ifeq ($(ARCH),i386)
... ...
rules.mak
... ... @@ -17,3 +17,9 @@ LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(1) $(ARLIBS_BEGIN) $(ARLIBS
17 17 $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@")
18 18  
19 19 quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))
  20 +
  21 +# cc-option
  22 +# Usage: CFLAGS+=$(call cc-option, $(CFLAGS), -falign-functions=0, -malign-functions=0)
  23 +
  24 +cc-option = $(shell if $(CC) $(1) $(2) -S -o /dev/null -xc /dev/null \
  25 + > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi ;)
... ...