summaryrefslogtreecommitdiffstats
path: root/MCONFIG
diff options
context:
space:
mode:
Diffstat (limited to 'MCONFIG')
-rw-r--r--MCONFIG12
1 files changed, 10 insertions, 2 deletions
diff --git a/MCONFIG b/MCONFIG
index 51f3b9871..36afcccc4 100644
--- a/MCONFIG
+++ b/MCONFIG
@@ -92,12 +92,20 @@ HAVE_FDUTILS=no
# ADD_RAW=yes
# Different optimizations for different cpus.
+# gcc 3.0 likes options -mcpu=i486 instead of -m486
ifeq "$(ARCH)" "intel"
+ ifeq "$(HAVE_OLD_GCC)" "yes"
+ CPUHEAD=-m
+ else
+ CPUHEAD=-mcpu=i
+ endif
ifeq "$(CPU)" "i386"
- OPT= -pipe -O2 -m386 -fomit-frame-pointer
+ CPUTAIL=386
else
- OPT= -pipe -O2 -m486 -fomit-frame-pointer
+ CPUTAIL=486
endif
+ CPUOPT= $(CPUHEAD)$(CPUTAIL)
+ OPT= -pipe -O2 $(CPUOPT) -fomit-frame-pointer
else
ifeq "$(ARCH)" "arm"
OPT= -pipe -O2 -fsigned-char -fomit-frame-pointer