Kaydet (Commit) 6ecb7801 authored tarafından Matúš Kukan's avatar Matúš Kukan

use -D$(CPUNAME) for all platforms also in gbuild

üst a6bea2c8
......@@ -197,6 +197,8 @@ ifneq ($(strip gb__ENV_CXXFLAGS),)
gb_LinkTarget_CXXFLAGS += $(gb__ENV_CXXFLAGS)
endif
gb_CPUDEFS += -D$(CPUNAME)
gb_GLOBALDEFS := \
-D_REENTRANT \
-DCUI \
......
......@@ -32,8 +32,6 @@
ifeq ($(CPUNAME),INTEL)
gb_CPUDEFS := -DX86
else
gb_CPUDEFS := -D$(CPUNAME)
endif
gb_COMPILERDEFAULTOPTFLAGS := -O -g
......
......@@ -32,8 +32,6 @@
ifeq ($(CPUNAME),INTEL)
gb_CPUDEFS := -DX86
else
gb_CPUDEFS := -D$(CPUNAME)
endif
gb_COMPILERDEFAULTOPTFLAGS := -O2
......
......@@ -29,7 +29,6 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS += -D$(CPUNAME)
gb_COMPILERDEFAULTOPTFLAGS := -Os
gb_CXXFLAGS += -fsigned-char -fno-omit-frame-pointer
gb_CFLAGS += -fsigned-char -fno-omit-frame-pointer
......
......@@ -29,7 +29,6 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS += -D$(CPUNAME)
gb_COMPILERDEFAULTOPTFLAGS := -O2
include $(GBUILDDIR)/platform/linux.mk
......
......@@ -29,7 +29,6 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS := -D$(CPUNAME)
gb_COMPILERDEFAULTOPTFLAGS := -O2
include $(GBUILDDIR)/platform/linux.mk
......
......@@ -29,7 +29,6 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS += -D$(CPUNAME)
gb_COMPILERDEFAULTOPTFLAGS := -Os
gb_CXXFLAGS += -fsigned-char -fno-omit-frame-pointer
gb_CFLAGS += -fsigned-char -fno-omit-frame-pointer
......
......@@ -29,7 +29,7 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS += -DPOWERPC -DPPC
gb_CPUDEFS += -DPPC
gb_COMPILERDEFAULTOPTFLAGS := -O2
gb_CXXFLAGS += -fsigned-char
gb_CFLAGS += -fsigned-char
......
......@@ -29,7 +29,6 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS := -D$(CPUNAME)
gb_CXXFLAGS += -mminimal-toc
gb_CFLAGS += -fsigned-char
......
......@@ -29,7 +29,6 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS += -D$(CPUNAME)
gb_COMPILERDEFAULTOPTFLAGS := -O2
gb_CXXFLAGS += -fsigned-char -fno-omit-frame-pointer
gb_CFLAGS += -fsigned-char -fno-omit-frame-pointer
......
......@@ -29,7 +29,6 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS := -D$(CPUNAME)
include $(GBUILDDIR)/platform/linux-S390.mk
......
......@@ -29,7 +29,6 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS := -D$(CPUNAME)
gb_COMPILERDEFAULTOPTFLAGS := -Os
include $(GBUILDDIR)/platform/linux.mk
......
......@@ -29,7 +29,6 @@
#*************************************************************************
#please make generic modifications to unxgcc.mk or linux.mk
gb_CPUDEFS := -D$(CPUNAME)
gb_COMPILERDEFAULTOPTFLAGS := -O2
include $(GBUILDDIR)/platform/linux.mk
......
......@@ -68,7 +68,7 @@ gb_COMPILERDEFS := \
-DGXX_INCLUDE_PATH=$(GXX_INCLUDE_PATH) \
ifeq ($(CPUNAME),POWERPC)
gb_CPUDEFS := -DPOWERPC -DPPC
gb_CPUDEFS := -DPPC
else
gb_CPUDEFS := -DX86
endif
......
......@@ -32,8 +32,6 @@
ifeq ($(CPUNAME),INTEL)
gb_CPUDEFS := -DX86
else
gb_CPUDEFS := -D$(CPUNAME)
endif
gb_COMPILERDEFAULTOPTFLAGS := -O2
......
......@@ -32,8 +32,6 @@
ifeq ($(CPUNAME),INTEL)
gb_CPUDEFS := -DX86
else
gb_CPUDEFS := -D$(CPUNAME)
endif
gb_COMPILERDEFAULTOPTFLAGS := -O2
......
......@@ -62,9 +62,8 @@ gb_COMPILERDEFS := \
-D$(COM) \
-DCPPU_ENV=sunpro5 \
gb_CPUDEFS := -D$(CPUNAME)
ifeq ($(CPUNAME),SPARC)
gb_CPUDEFS += -D__sparcv8plus
gb_CPUDEFS := -D__sparcv8plus
endif
gb_CFLAGS := \
......
......@@ -68,7 +68,7 @@ gb_COMPILERDEFS := \
-DCPPU_ENV=msci \
-DM1500 \
gb_CPUDEFS := -DINTEL -D_X86_=1
gb_CPUDEFS := -D_X86_=1
gb_RCDEFS := \
-DWINVER=0x0400 \
......
......@@ -85,9 +85,7 @@ gb_COMPILERDEFS := \
-D_MSC_EXTENSIONS \
-D_FORCENAMELESSUNION \
gb_CPUDEFS := \
-DINTEL \
-D_M_IX86 \
gb_CPUDEFS := -D_M_IX86
gb_RCDEFS := \
-DWINVER=0x0400 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment