fix(userspace/libc): add libgcc link to fix softfloat

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-05 23:17:15 +00:00
parent 77e51a6f2c
commit 3740b65263
2 changed files with 1 additions and 320 deletions

View File

@@ -24,7 +24,7 @@ build: $(DYNAMIC_NAME) $(STATIC_NAME)
$(DYNAMIC_NAME): $(OBJ)
$(info Linking $@)
$(CC) -nostdlib -shared -fPIC -fPIE -e _start -Wl,-soname,$(DYNAMIC_NAME) $(SYSROOT) $(OBJ) -o $(DYNAMIC_NAME)
$(CC) -nostdlib -shared -fPIC -fPIE -e _start -Wl,-soname,$(DYNAMIC_NAME) $(SYSROOT) $(OBJ) -o $(DYNAMIC_NAME) -lgcc
cp $(DYNAMIC_NAME) $(OUTPUT_DIR)$(DYNAMIC_NAME)
$(STATIC_NAME): $(OBJ)