components/illumos-gcc/Makefile
branchoi_151a
changeset 299 68a21ca47308
child 309 b59342ebf6e1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/illumos-gcc/Makefile	Sat Jun 30 14:57:38 2012 +0100
@@ -0,0 +1,54 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL)". You may
+# only use this file in accordance with the terms of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source. A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# Copyright 2012, Jon Tibble
+#
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		illumos-gcc
+COMPONENT_VERSION=	4.4.4
+COMPONENT_SRC=		richlowe-gcc-f268959
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH=	sha256:a4c677b056bd4f713315c863ca0049673870283ab4d96029e10d78dd0074cf10
+COMPONENT_ARCHIVE_URL=	https://github.com/richlowe/gcc/tarball/gcc-4.4.4-il-2
+
+include $(WS_TOP)/make-rules/prep.mk
+include $(WS_TOP)/make-rules/configure.mk
+include $(WS_TOP)/make-rules/ips.mk
+
+COMPILER=	gcc
+CC_BITS=
+PATH=		/opt/SUNWspro/bin:/usr/gnu/bin:/usr/sfw/bin:/usr/bin:/usr/ccs/bin
+CFLAGS=		-g -O2
+CONFIG_SHELL=	/bin/sh
+
+CONFIGURE_PREFIX=	/opt/gcc/$(COMPONENT_VERSION)
+
+# sparc and x86 use different assemblers
+CONFIGURE_OPTIONS.sparc +=	--without-gnu-as --with-as=/usr/bin/as
+CONFIGURE_OPTIONS.i386 +=	--with-gnu-as --with-as=/usr/gnu/bin/as
+
+CONFIGURE_OPTIONS =	--prefix=$(CONFIGURE_PREFIX)
+CONFIGURE_OPTIONS +=	$(CONFIGURE_OPTIONS.$(MACH))
+CONFIGURE_OPTIONS +=	--with-ld=/usr/bin/ld
+CONFIGURE_OPTIONS +=	--without-gnu-ld
+CONFIGURE_OPTIONS +=	--enable-languages="c,c++,objc"
+CONFIGURE_OPTIONS +=	--enable-shared
+CONFIGURE_OPTIONS +=	--with-mpfr-include=/usr/include/mpfr
+CONFIGURE_OPTIONS +=	--with-gmp-include=/usr/include/gmp
+
+COMPONENT_BUILD_ENV=		SHELL=$(CONFIG_SHELL) CFLAGS="$(CFLAGS)" STAGE1_CFLAGS="$(CFLAGS)" CFLAGS_FOR_TARGET="$(CFLAGS)"
+COMPONENT_BUILD_GMAKE_ARGS=	-j8
+COMPONENT_BUILD_TARGETS=	bootstrap
+
+build:		$(BUILD_32)
+
+install:	$(INSTALL_32)