Add special Makefile rule for string functions.

* Fixes issue with built-in string functions after gcc update.
This commit is contained in:
iabdalkader 2021-05-22 20:55:10 +02:00
parent b5741ac543
commit b227ee9ad8
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,10 @@ $(BUILD)/%.o : %.c
$(ECHO) "CC $<" $(ECHO) "CC $<"
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CFLAGS) -c -o $@ $<
$(BUILD)/src/string0.o : src/string0.c
$(ECHO) "CC $<"
$(CC) $(CFLAGS) -ffreestanding -fno-builtin -fno-lto -c -o $@ $<
$(BUILD)/%.o : %.s $(BUILD)/%.o : %.s
$(ECHO) "AS $<" $(ECHO) "AS $<"
$(AS) $(AFLAGS) $< -o $@ $(AS) $(AFLAGS) $< -o $@

View File

@ -18,6 +18,10 @@ $(BUILD)/%.o : %.c
$(ECHO) "CC $<" $(ECHO) "CC $<"
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CFLAGS) -c -o $@ $<
$(BUILD)/src/string0.o : src/string0.c
$(ECHO) "CC $<"
$(CC) $(CFLAGS) -ffreestanding -fno-builtin -fno-lto -c -o $@ $<
$(BUILD)/%.o : %.s $(BUILD)/%.o : %.s
$(ECHO) "AS $<" $(ECHO) "AS $<"
$(AS) $(AFLAGS) $< -o $@ $(AS) $(AFLAGS) $< -o $@