Changes in boot/Makefile.build [3bf8a75:874ed210] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.build

    r3bf8a75 r874ed210  
    3636DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__
    3737
    38 AFLAGS = --fatal-warnings
    39 LDFLAGS = -Wl,--fatal-warnings,--warn-common
     38LDFLAGS = -Wl,--fatal-warnings,--warn-common $(EXTRA_LDFLAGS)
    4039
    4140COMMON_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    4241        -ffreestanding -nostdlib \
    4342        -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \
    44         -fdebug-prefix-map=$(realpath $(ROOT_PATH))=.
     43        -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. \
     44        -Wa,--fatal-warnings
    4545
    4646GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
     
    8080-include $(DEPENDS)
    8181
    82 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS))
    83 
    8482$(BOOT_OUTPUT): $(RAW)
    8583        $(OBJCOPY) -O $(BFD_OUTPUT) $< $@
     
    9290
    9391%.o: %.s | depend
    94         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)
     92        $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
    9593
    9694%.o: %.S | depend
    97         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)
     95        $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
    9896
    9997%.o: %.c | depend
Note: See TracChangeset for help on using the changeset viewer.