components/llvm/cxa_finalize/Makefile
changeset 7771 46912a8a1f29
parent 6512 92717ce71105
equal deleted inserted replaced
7770:5efbd9a35bd0 7771:46912a8a1f29
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 export PARFAIT_BUILD=no
    25 export PARFAIT_BUILD=no
    26 COMPILER= gcc
    26 COMPILER= gcc
       
    27 COMPONENT_ARCHIVE=
    27 
    28 
    28 include ../../../make-rules/shared-macros.mk
    29 include ../../../make-rules/shared-macros.mk
    29 
    30 
    30 COMPONENT_DIR := $(shell pwd)/..
    31 COMPONENT_DIR := $(shell pwd)/..
    31 
    32 
    34      $(MKDIR) build/$(MACH64) )
    35      $(MKDIR) build/$(MACH64) )
    35 
    36 
    36 OBJECTS = cxa_finalize-32.o cxa_finalize-64.o \
    37 OBJECTS = cxa_finalize-32.o cxa_finalize-64.o \
    37 	  cxa_finalize_pic-32.o cxa_finalize_pic-64.o
    38 	  cxa_finalize_pic-32.o cxa_finalize_pic-64.o
    38 
    39 
       
    40 BUILD_STYLE= pkg
    39 include $(WS_MAKE_RULES)/common.mk
    41 include $(WS_MAKE_RULES)/common.mk
    40 
    42 
    41 GCC_VERSION := 4.9
    43 # We need GCC version 5, and not another version; see components/llvm/Makefile.
    42 
    44 GCC_ROOT=/usr/gcc/5
    43 # We need GCC version 4.9, and not another version.
       
    44 CC=/usr/gcc/$(GCC_VERSION)/bin/gcc
       
    45 CXX=/usr/gcc/$(GCC_VERSION)/bin/g++
       
    46 
    45 
    47 RELEASE_LIST=Debug+Asserts+Checks Debug+Asserts Debug Release+Debug Release Unoptimized
    46 RELEASE_LIST=Debug+Asserts+Checks Debug+Asserts Debug Release+Debug Release Unoptimized
    48 
    47 
    49 # Keep CFLAGS simple and generic.
    48 # Keep CFLAGS simple and generic.
    50 CFLAGS = -g -O2 -std=c99 -Wall -Wextra -Wcast-align
    49 CFLAGS = -g -O2 -std=c99 -Wall -Wextra -Wcast-align