equal
deleted
inserted
replaced
16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
|
21 # Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved. |
21 # Copyright (c) 2011, OpenIndiana project. All rights reserved. |
22 # Copyright (c) 2011, OpenIndiana project. All rights reserved. |
22 # |
23 # |
23 include ../../make-rules/shared-macros.mk |
24 include ../../make-rules/shared-macros.mk |
24 |
25 |
25 COMPONENT_NAME= gcc |
26 COMPONENT_NAME= gcc |
35 include ../../make-rules/ips.mk |
36 include ../../make-rules/ips.mk |
36 |
37 |
37 GCC_ROOT=/usr/gcc/4.4 |
38 GCC_ROOT=/usr/gcc/4.4 |
38 COMPILER=gcc |
39 COMPILER=gcc |
39 |
40 |
40 # workarround plattform, EC uses PLAT makro, should be reimplemented in shared-macros.mk |
|
41 # ore replaced |
|
42 PLAT=$(shell uname -p | sed 's/i386/pc/;s/sparc/sun/') |
|
43 PKG_MACROS += PLAT=$(PLAT) |
|
44 |
|
45 CPPFLAGS+= -fexceptions |
41 CPPFLAGS+= -fexceptions |
46 |
42 |
47 CONFIGURE_PREFIX = /usr/gcc/4.4 |
43 CONFIGURE_PREFIX = /usr/gcc/4.4 |
48 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
44 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
49 CONFIGURE_OPTIONS += --with-gmp=$(CONFIGURE_PREFIX) |
45 CONFIGURE_OPTIONS += --with-gmp=$(CONFIGURE_PREFIX) |
56 CONFIGURE_OPTIONS += --with-ld=/usr/ccs/bin/ld |
52 CONFIGURE_OPTIONS += --with-ld=/usr/ccs/bin/ld |
57 CONFIGURE_OPTIONS += --enable-stage1-languages=c |
53 CONFIGURE_OPTIONS += --enable-stage1-languages=c |
58 CONFIGURE_OPTIONS += --enable-languages=c,c++,objc,fortran |
54 CONFIGURE_OPTIONS += --enable-languages=c,c++,objc,fortran |
59 CONFIGURE_OPTIONS += --with-stage1-ldflags="-R$(CONFIGURE_PREFIX)/lib" |
55 CONFIGURE_OPTIONS += --with-stage1-ldflags="-R$(CONFIGURE_PREFIX)/lib" |
60 CONFIGURE_OPTIONS += --with-boot-ldflags="-R$(CONFIGURE_PREFIX)/lib" |
56 CONFIGURE_OPTIONS += --with-boot-ldflags="-R$(CONFIGURE_PREFIX)/lib" |
61 CONFIGURE_OPTIONS += --build=$(MACH)-$(PLAT)-solaris$(SOLARIS_VERSION) |
|
62 |
57 |
63 include ../../make-rules/shared-targets.mk |
58 include ../../make-rules/shared-targets.mk |
64 |
59 |
65 build: $(BUILD_32) |
60 build: $(BUILD_32) |
66 |
61 |