author | Andrew Stormont <andrew.stormont@nexenta.com> |
Fri, 04 May 2012 09:35:45 +0100 | |
changeset 493 | 66a35caef41c |
parent 434 | 63071992cb67 |
permissions | -rw-r--r-- |
434 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
493
66a35caef41c
2632 GNU_ARCH should be defined globally
Andrew Stormont <andrew.stormont@nexenta.com>
parents:
434
diff
changeset
|
21 |
# Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved. |
434 | 22 |
# Copyright (c) 2011, OpenIndiana project. All rights reserved. |
23 |
# |
|
24 |
include ../../make-rules/shared-macros.mk |
|
25 |
||
26 |
COMPONENT_NAME= gcc |
|
27 |
COMPONENT_VERSION= 4.4.4 |
|
28 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
29 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
|
30 |
COMPONENT_ARCHIVE_HASH= sha1:45d1e7242a08cbb7a343ed2bf640a5afd0ebe098 |
|
31 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gcc/$(COMPONENT_NAME)-$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
|
32 |
COMPONENT_PROJECT_URL= http://gcc.gnu.org/ |
|
33 |
||
34 |
include ../../make-rules/prep.mk |
|
35 |
include ../../make-rules/configure.mk |
|
36 |
include ../../make-rules/ips.mk |
|
37 |
||
38 |
GCC_ROOT=/usr/gcc/4.4 |
|
39 |
COMPILER=gcc |
|
40 |
||
41 |
CPPFLAGS+= -fexceptions |
|
42 |
||
43 |
CONFIGURE_PREFIX = /usr/gcc/4.4 |
|
44 |
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
|
45 |
CONFIGURE_OPTIONS += --with-gmp=$(CONFIGURE_PREFIX) |
|
46 |
CONFIGURE_OPTIONS += --with-mpfr=$(CONFIGURE_PREFIX) |
|
47 |
CONFIGURE_OPTIONS += --with-mpc=$(CONFIGURE_PREFIX) |
|
48 |
CONFIGURE_OPTIONS += --without-ppl |
|
49 |
CONFIGURE_OPTIONS += --without-cloog |
|
50 |
CONFIGURE_OPTIONS += --with-gnu-as |
|
51 |
CONFIGURE_OPTIONS += --with-as=$(SFWBIN)/gas |
|
52 |
CONFIGURE_OPTIONS += --with-ld=/usr/ccs/bin/ld |
|
53 |
CONFIGURE_OPTIONS += --enable-stage1-languages=c |
|
54 |
CONFIGURE_OPTIONS += --enable-languages=c,c++,objc,fortran |
|
55 |
CONFIGURE_OPTIONS += --with-stage1-ldflags="-R$(CONFIGURE_PREFIX)/lib" |
|
56 |
CONFIGURE_OPTIONS += --with-boot-ldflags="-R$(CONFIGURE_PREFIX)/lib" |
|
57 |
||
58 |
include ../../make-rules/shared-targets.mk |
|
59 |
||
60 |
build: $(BUILD_32) |
|
61 |
||
62 |
install: $(INSTALL_32) |
|
63 |
||
64 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
65 |
||
66 |
include ../../make-rules/depend.mk |