2003/03/30 09:53:11
[org.ibex.core.git] / Makefile
index c91c7bb..d3d09c8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,9 @@ gcj_java_objects       := $(gcj_java_sources:src/%.java=bin-$(platform)/%.o)
 
 # tools
 gcc_path               := $(shell pwd)/gcc
-gcc_flags              := -O9 -ffast-math -fomit-frame-pointer -foptimize-sibling-calls -finline-functions -funroll-loops -g
+#gcc_optimizations      := -O9 -ffast-math -fomit-frame-pointer -foptimize-sibling-calls -finline-functions -funroll-loops
+gcc_optimizations      := -O0
+gcc_flags              := $(gcc_optimizations) -g -ffunction-sections -fdata-sections
 gcj_flags              := -fCLASSPATH=bin 
 gcj                    := $(gcc_path)/bin/$(target)-gcj $(gcj_flags) $(gcc_flags)
 gcc                    := $(gcc_path)/bin/$(target)-g++ $(gcc_flags)