diff --git a/sysmodules/loader/Makefile b/sysmodules/loader/Makefile index 532d934..e08ad6a 100755 --- a/sysmodules/loader/Makefile +++ b/sysmodules/loader/Makefile @@ -20,7 +20,7 @@ LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) INCLUDE := $(foreach dir,$(LIBDIRS),-I$(dir)/include) ASFLAGS := -mcpu=mpcore -mfloat-abi=hard -CFLAGS := -Wall -Wextra $(ASFLAGS) -fno-builtin -std=c11 -O2 -flto -ffast-math $(INCLUDE) -DARM11 -D_3DS +CFLAGS := -Wall -Wextra $(ASFLAGS) -fno-builtin -std=c11 -O2 -ffast-math $(INCLUDE) -DARM11 -D_3DS LDFLAGS := -specs=3dsx.specs $(ASFLAGS) -Wl,--section-start,.text=0x14000000 objects = $(patsubst $(dir_source)/%.c, $(dir_build)/%.o, \ @@ -51,7 +51,7 @@ $(dir_build)/%.bin.o: $(dir_build)/%.bin @$(bin2o) $(dir_build)/%.bin: $(dir_patches)/%.s - @mkdir -p "$(@D)" + @mkdir -p "$(@D)" @armips $< $(dir_build)/memory.o $(dir_build)/strings.o: CFLAGS += -O3 diff --git a/sysmodules/rosalina/Makefile b/sysmodules/rosalina/Makefile index 24656de..58ab220 100644 --- a/sysmodules/rosalina/Makefile +++ b/sysmodules/rosalina/Makefile @@ -21,7 +21,7 @@ INCLUDE := $(foreach dir,$(LIBDIRS),-I$(dir)/include) ARCH := -mcpu=mpcore -mfloat-abi=hard ASFLAGS := -g $(ARCH) -CFLAGS := -Wall -Wextra -MMD -MP -marm $(ASFLAGS) -mtp=soft -fno-builtin -std=c11 -O2 -flto -ffast-math -mword-relocations \ +CFLAGS := -Wall -Wextra -MMD -MP -marm $(ASFLAGS) -mtp=soft -fno-builtin -std=c11 -O2 -ffast-math -mword-relocations \ -fomit-frame-pointer -ffunction-sections -fdata-sections $(INCLUDE) -I$(dir_include) -DARM11 -D_3DS LDFLAGS := -specs=3dsx.specs -g $(ARCH) -mtp=soft -Wl,--section-start,.text=0x14000000 -Wl,--gc-sections