summaryrefslogtreecommitdiff
path: root/libpsx/Makefile
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2020-01-31 14:10:20 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2020-01-31 14:10:20 +0100
commit26b206560dc4bce4537ec9fcceb2306534fd1c6a (patch)
tree409ade6fe8eabe90c298fb1236028065e92af1e0 /libpsx/Makefile
parent78128c8058e6f522c55e7945274926d33183634f (diff)
downloadpsxsdk-26b206560dc4bce4537ec9fcceb2306534fd1c6a.tar.gz
Added -ffunction/data-sections and -Os to libpsx
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)) \