Skip to content

Commit

Permalink
Removed string0.c and added -lc to link micromusl c lib
Browse files Browse the repository at this point in the history
Note: string0.c has not been deleted, it just was removed from
the Makefile.  Also -lc was added after all the object files
so gcc should only cherry-pick the c library functions that
are actually needed.
  • Loading branch information
Hagen Kaye committed Dec 31, 2013
1 parent 7990eba commit 7741268
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ SRC_C = \
printf.c \
system_stm32f4xx.c \
stm32fxxx_it.c \
string0.c \
malloc0.c \
systick.c \
lexerstm.c \
Expand Down Expand Up @@ -147,7 +146,7 @@ $(BUILD)/flash1.bin: $(BUILD)/flash.elf
arm-none-eabi-objcopy -O binary -j .text -j .data $^ $@

$(BUILD)/flash.elf: $(OBJ)
$(LD) $(LDFLAGS) -o $@ $(OBJ)
$(LD) $(LDFLAGS) -o $@ $(OBJ) -L../micromusl/build/lib -lc
arm-none-eabi-size $@

$(BUILD):
Expand Down

0 comments on commit 7741268

Please sign in to comment.