24 lines
653 B
Text
24 lines
653 B
Text
|
Don't hardcode -fpic, some of our architectures need -fPIC.
|
||
|
Don't hardcode -O2.
|
||
|
|
||
|
Index: src/build/Common.gmake
|
||
|
--- src/build/Common.gmake.orig
|
||
|
+++ src/build/Common.gmake
|
||
|
@@ -225,7 +225,6 @@ endif
|
||
|
ifeq ($(machine),x86_64)
|
||
|
machine := x64
|
||
|
endif
|
||
|
-CFLAGS += -fpic
|
||
|
ifeq ($(machine),sparc64)
|
||
|
CFLAGS += -D__BIG_ENDIAN__
|
||
|
endif
|
||
|
@@ -433,7 +432,7 @@ ifdef DEBUG
|
||
|
else # RELEASE
|
||
|
# -finline functions breaks the baja build badly.
|
||
|
# This also means that -O3 won't work either.
|
||
|
- CFLAGS := -O2 -fomit-frame-pointer -ffast-math -funroll-loops $(CFLAGS)
|
||
|
+ CFLAGS := -fomit-frame-pointer -ffast-math -funroll-loops $(CFLAGS)
|
||
|
endif
|
||
|
|
||
|
-include targets.mk
|