summaryrefslogtreecommitdiff
path: root/libpsx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libpsx/Makefile')
-rw-r--r--libpsx/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpsx/Makefile b/libpsx/Makefile
index d905cb8..f976aa5 100644
--- a/libpsx/Makefile
+++ b/libpsx/Makefile
@@ -2,10 +2,10 @@
include ../Makefile.cfg
-CFLAGS += -O0
+CFLAGS += -Os
# Never remove the line below!
-CFLAGS += -D__IN_LIBPSX
+CFLAGS += -D__IN_LIBPSX -ffunction-sections -fdata-sections
OBJS = $(patsubst src/%.c, out/%.o, $(wildcard src/*.c)) \
$(patsubst src/libc/%.c, out/libc/%.o, $(wildcard src/libc/*.c)) \