components/illumos-gcc/Makefile
branchoi_151a
changeset 299 68a21ca47308
child 309 b59342ebf6e1
equal deleted inserted replaced
298:d590f3056a17 299:68a21ca47308
       
     1 #
       
     2 # This file and its contents are supplied under the terms of the
       
     3 # Common Development and Distribution License ("CDDL)". You may
       
     4 # only use this file in accordance with the terms of the CDDL.
       
     5 #
       
     6 # A full copy of the text of the CDDL should have accompanied this
       
     7 # source. A copy of the CDDL is also available via the Internet at
       
     8 # http://www.illumos.org/license/CDDL.
       
     9 #
       
    10 
       
    11 #
       
    12 # Copyright 2012, Jon Tibble
       
    13 #
       
    14 include ../../make-rules/shared-macros.mk
       
    15 
       
    16 COMPONENT_NAME=		illumos-gcc
       
    17 COMPONENT_VERSION=	4.4.4
       
    18 COMPONENT_SRC=		richlowe-gcc-f268959
       
    19 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    20 COMPONENT_ARCHIVE_HASH=	sha256:a4c677b056bd4f713315c863ca0049673870283ab4d96029e10d78dd0074cf10
       
    21 COMPONENT_ARCHIVE_URL=	https://github.com/richlowe/gcc/tarball/gcc-4.4.4-il-2
       
    22 
       
    23 include $(WS_TOP)/make-rules/prep.mk
       
    24 include $(WS_TOP)/make-rules/configure.mk
       
    25 include $(WS_TOP)/make-rules/ips.mk
       
    26 
       
    27 COMPILER=	gcc
       
    28 CC_BITS=
       
    29 PATH=		/opt/SUNWspro/bin:/usr/gnu/bin:/usr/sfw/bin:/usr/bin:/usr/ccs/bin
       
    30 CFLAGS=		-g -O2
       
    31 CONFIG_SHELL=	/bin/sh
       
    32 
       
    33 CONFIGURE_PREFIX=	/opt/gcc/$(COMPONENT_VERSION)
       
    34 
       
    35 # sparc and x86 use different assemblers
       
    36 CONFIGURE_OPTIONS.sparc +=	--without-gnu-as --with-as=/usr/bin/as
       
    37 CONFIGURE_OPTIONS.i386 +=	--with-gnu-as --with-as=/usr/gnu/bin/as
       
    38 
       
    39 CONFIGURE_OPTIONS =	--prefix=$(CONFIGURE_PREFIX)
       
    40 CONFIGURE_OPTIONS +=	$(CONFIGURE_OPTIONS.$(MACH))
       
    41 CONFIGURE_OPTIONS +=	--with-ld=/usr/bin/ld
       
    42 CONFIGURE_OPTIONS +=	--without-gnu-ld
       
    43 CONFIGURE_OPTIONS +=	--enable-languages="c,c++,objc"
       
    44 CONFIGURE_OPTIONS +=	--enable-shared
       
    45 CONFIGURE_OPTIONS +=	--with-mpfr-include=/usr/include/mpfr
       
    46 CONFIGURE_OPTIONS +=	--with-gmp-include=/usr/include/gmp
       
    47 
       
    48 COMPONENT_BUILD_ENV=		SHELL=$(CONFIG_SHELL) CFLAGS="$(CFLAGS)" STAGE1_CFLAGS="$(CFLAGS)" CFLAGS_FOR_TARGET="$(CFLAGS)"
       
    49 COMPONENT_BUILD_GMAKE_ARGS=	-j8
       
    50 COMPONENT_BUILD_TARGETS=	bootstrap
       
    51 
       
    52 build:		$(BUILD_32)
       
    53 
       
    54 install:	$(INSTALL_32)