Add the Eclipse Java Compiler to be able to compile Java.
Andy JOHNSON wrote:
The Java compiler for GCC versions 4.3.0 and up requires the
Eclipse compiler "ecj1" to be built as well. I added "gcj" to
the list of utilities to make the initial link.
/trunk/scripts/build/cc/gcc.sh | 12 12 0 0 ++++++++++++
/trunk/scripts/crosstool.sh | 2 1 1 0 +-
/trunk/config/cc/gcc.in | 6 6 0 0 ++++++
3 files changed, 19 insertions(+), 1 deletion(-)
5 select CC_SUPPORT_FORTRAN
9 select CC_SUPPORT_OBJCXX
11 gcc is the full-blown GNU compiler. This is what most people will choose.
13 gcc supports many languages, a powerful code parser, optimised binary
14 output, and lots of other features.
22 prompt "3.2.3 (OBSOLETE)"
27 prompt "3.3.6 (OBSOLETE)"
32 prompt "3.4.6 (OBSOLETE)"
37 prompt "4.0.0 (OBSOLETE)"
42 prompt "4.0.1 (OBSOLETE)"
47 prompt "4.0.2 (OBSOLETE)"
52 prompt "4.0.3 (OBSOLETE)"
61 prompt "4.1.0 (OBSOLETE)"
66 prompt "4.1.1 (OBSOLETE)"
95 prompt "4.3.0 (EXPERIMENTAL)"
96 depends on EXPERIMENTAL
97 select CC_GCC_4_3_or_later
102 select CC_GCC_4_3_or_later
107 select CC_GCC_4_3_or_later
109 # CT_INSERT_VERSION_ABOVE
110 # Don't remove above line!
115 default "3.2.3" if CC_V_3_2_3
116 default "3.3.6" if CC_V_3_3_6
117 default "3.4.6" if CC_V_3_4_6
118 default "4.0.0" if CC_V_4_0_0
119 default "4.0.1" if CC_V_4_0_1
120 default "4.0.2" if CC_V_4_0_2
121 default "4.0.3" if CC_V_4_0_3
122 default "4.0.4" if CC_V_4_0_4
123 default "4.1.0" if CC_V_4_1_0
124 default "4.1.1" if CC_V_4_1_1
125 default "4.1.2" if CC_V_4_1_2
126 default "4.2.0" if CC_V_4_2_0
127 default "4.2.1" if CC_V_4_2_1
128 default "4.2.2" if CC_V_4_2_2
129 default "4.2.3" if CC_V_4_2_3
130 default "4.2.4" if CC_V_4_2_4
131 default "4.3.0" if CC_V_4_3_0
132 default "4.3.1" if CC_V_4_3_1
133 default "4.3.2" if CC_V_4_3_2
134 # CT_INSERT_VERSION_STRING_ABOVE
135 # Don't remove above line!
137 config CC_GCC_4_3_or_later
144 prompt "Use __cxa_atexit"
146 depends on ! BARE_METAL
148 If you get the missing symbol "__cxa_atexit" when building C++ programs,
149 you might want to try disabling this option.
153 prompt "Use sjlj for exceptions"
154 default CC_SJLJ_EXCEPTIONS_CONFIGURE
155 depends on ! BARE_METAL
157 # This config option is used nowhere in the code on purpose.
158 # It only serves as a choice entry to force neither using nor not using sjlj
159 config CC_SJLJ_EXCEPTIONS_CONFIGURE
161 prompt "Let configure decide"
163 Let configure decide if setjmp/longjmp should be used to handle
166 Choose that if you trust configure to detect the correct settings.
167 This is the default choice.
169 config CC_SJLJ_EXCEPTIONS_USE
171 prompt "Force using sjlj"
173 Do use setjmp/longjmp for exceptions.
174 This is gcc's --enable-sjlj-exceptions configure switch.
176 Choose that if you want to use setjmp/longjmp to handle exceptions.
178 config CC_SJLJ_EXCEPTIONS_DONT_USE
180 prompt "Force not using sjlj"
182 Do not use setjmp/longjmp for exceptions.
183 This is gcc's --disable-sjlj-exceptions configure switch.
185 Choose that if you want to not use setjmp/longjmp to handle exceptions.
189 config CC_CORE_EXTRA_CONFIG
191 prompt "Core gcc extra config"
194 Extra flags to pass onto ./configure when configuring the core gcc.
196 The core gcc is a stripped down, C-only compiler needed to build
197 the C library. Kinda bootstrap gcc, if you wish.
199 config CC_EXTRA_CONFIG
201 prompt "gcc extra config"
203 depends on ! BARE_METAL
205 Extra flags to pass onto ./configure when configuring gcc.
209 prompt "gcc ID string"
210 depends on CC_GCC_4_3_or_later
211 default "crosstool-NG-${CT_VERSION}"
213 Specify a string that identifies your package. You may wish to include
214 a build number or build date. This version string will be included in
215 the output of gcc --version.
217 This is passed to the configure flag --with-pkgversion.
222 depends on CC_GCC_4_3_or_later
225 Specify the URL that users should visit if they wish to report a bug.
227 config CC_LANG_JAVA_USE_ECJ
230 depends on CC_LANG_JAVA
231 depends on CC_GCC_4_3_or_later