hotspot/make/linux/makefiles/gcc.make

Print this page




  38 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0"
  39 USE_PRECOMPILED_HEADER=1
  40 PRECOMPILED_HEADER_DIR=.
  41 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/incls/_precompiled.incl.gch
  42 endif
  43 
  44 
  45 #------------------------------------------------------------------------
  46 # Compiler flags
  47 
  48 # position-independent code
  49 PICFLAG = -fPIC
  50 
  51 VM_PICFLAG/LIBJVM = $(PICFLAG)
  52 VM_PICFLAG/AOUT   =
  53 VM_PICFLAG        = $(VM_PICFLAG/$(LINK_INTO))
  54 
  55 ifeq ($(ZERO_BUILD), true)
  56 CFLAGS += $(LIBFFI_CFLAGS)
  57 endif



  58 CFLAGS += $(VM_PICFLAG)
  59 CFLAGS += -fno-rtti
  60 CFLAGS += -fno-exceptions
  61 CFLAGS += -D_REENTRANT
  62 CFLAGS += -fcheck-new
  63 
  64 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
  65 ARCHFLAG/i486    = -m32 -march=i586
  66 ARCHFLAG/amd64   = -m64
  67 ARCHFLAG/ia64    =
  68 ARCHFLAG/sparc   = -m32 -mcpu=v9
  69 ARCHFLAG/sparcv9 = -m64 -mcpu=v9
  70 ARCHFLAG/zero    = $(ZERO_ARCHFLAG)
  71 
  72 CFLAGS     += $(ARCHFLAG)
  73 AOUT_FLAGS += $(ARCHFLAG)
  74 LFLAGS     += $(ARCHFLAG)
  75 ASFLAGS    += $(ARCHFLAG)
  76 
  77 # Use C++ Interpreter




  38 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0"
  39 USE_PRECOMPILED_HEADER=1
  40 PRECOMPILED_HEADER_DIR=.
  41 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/incls/_precompiled.incl.gch
  42 endif
  43 
  44 
  45 #------------------------------------------------------------------------
  46 # Compiler flags
  47 
  48 # position-independent code
  49 PICFLAG = -fPIC
  50 
  51 VM_PICFLAG/LIBJVM = $(PICFLAG)
  52 VM_PICFLAG/AOUT   =
  53 VM_PICFLAG        = $(VM_PICFLAG/$(LINK_INTO))
  54 
  55 ifeq ($(ZERO_BUILD), true)
  56 CFLAGS += $(LIBFFI_CFLAGS)
  57 endif
  58 ifeq ($(SHARK_BUILD), true)
  59 CFLAGS += $(LLVM_CFLAGS)
  60 endif
  61 CFLAGS += $(VM_PICFLAG)
  62 CFLAGS += -fno-rtti
  63 CFLAGS += -fno-exceptions
  64 CFLAGS += -D_REENTRANT
  65 CFLAGS += -fcheck-new
  66 
  67 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
  68 ARCHFLAG/i486    = -m32 -march=i586
  69 ARCHFLAG/amd64   = -m64
  70 ARCHFLAG/ia64    =
  71 ARCHFLAG/sparc   = -m32 -mcpu=v9
  72 ARCHFLAG/sparcv9 = -m64 -mcpu=v9
  73 ARCHFLAG/zero    = $(ZERO_ARCHFLAG)
  74 
  75 CFLAGS     += $(ARCHFLAG)
  76 AOUT_FLAGS += $(ARCHFLAG)
  77 LFLAGS     += $(ARCHFLAG)
  78 ASFLAGS    += $(ARCHFLAG)
  79 
  80 # Use C++ Interpreter