make/bsd/makefiles/gcc.make

Print this page
rev 4938 : 8024648: 8016131 & new build break Zero port
Summary: Fix breakages in Zero port caused by build system changes and 8016131.
Reviewed-by: amurillo
   1 #
   2 # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.

   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  
  23 #


  24 
  25 OS_VENDOR = $(shell uname -s)
  26 
  27 #------------------------------------------------------------------------
  28 # CC, CXX & AS
  29 
  30 # If a SPEC is not set already, then use these defaults.
  31 ifeq ($(SPEC),)
  32   # When cross-compiling the ALT_COMPILER_PATH points
  33   # to the cross-compilation toolset
  34   ifdef CROSS_COMPILE_ARCH
  35     CXX = $(ALT_COMPILER_PATH)/g++
  36     CC  = $(ALT_COMPILER_PATH)/gcc
  37     HOSTCXX = g++
  38     HOSTCC  = gcc
  39   else ifneq ($(OS_VENDOR), Darwin)
  40     CXX = g++
  41     CC  = gcc
  42     HOSTCXX = $(CXX)
  43     HOSTCC  = $(CC)


   1 #
   2 # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
   3 # Copyright (c) 2013 Red Hat, Inc.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #  
  24 #
  25 
  26 include $(GAMMADIR)/make/defs.make
  27 
  28 OS_VENDOR = $(shell uname -s)
  29 
  30 #------------------------------------------------------------------------
  31 # CC, CXX & AS
  32 
  33 # If a SPEC is not set already, then use these defaults.
  34 ifeq ($(SPEC),)
  35   # When cross-compiling the ALT_COMPILER_PATH points
  36   # to the cross-compilation toolset
  37   ifdef CROSS_COMPILE_ARCH
  38     CXX = $(ALT_COMPILER_PATH)/g++
  39     CC  = $(ALT_COMPILER_PATH)/gcc
  40     HOSTCXX = g++
  41     HOSTCC  = gcc
  42   else ifneq ($(OS_VENDOR), Darwin)
  43     CXX = g++
  44     CC  = gcc
  45     HOSTCXX = $(CXX)
  46     HOSTCC  = $(CC)