1 # Misc library-related options
3 config CC_GCC_ENABLE_TARGET_OPTSPACE
5 prompt "Optimize gcc libs for size"
8 Pass --enable-target-optspace to crossgcc's configure.
10 This will compile crossgcc's libs with -Os.
12 config CC_GCC_USE_GRAPHITE
14 prompt "Enable GRAPHITE loop optimisations"
16 depends on CC_GCC_HAS_GRAPHITE
17 select CC_GCC_USE_PPL_CLOOG
19 Enable the GRAPHITE loop optimsations.
21 This requires the PPL and CLooG companion libraries, and
22 those will be automatically build for you.
24 On some systems (eg. Cygwin), PPL and/or CLooG may not
25 build properly (yet), so you'll have to say 'N' here.
27 # The way LTO works is a bit twisted.
28 # See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
30 # - if binutils has plugins: LTO is handled by ld/gold by loading
31 # the plugin when linking
32 # - if binutils does not have plugins: LTO is handled by collect2
33 # In any case, LTO support does not depend on plugins, but takes
35 # Also, only the 4.5 series needs libelf for LTO
40 depends on CC_GCC_HAS_LTO
41 select CC_GCC_USE_LIBELF if CC_GCC_4_5
43 Enable the Link Time Optimisations.
45 This will require the libelf companion library, and it
46 wil be build automatically for you.
48 config STATIC_TOOLCHAIN
49 select CC_STATIC_LIBSTDCXX if CC_GCC_4_4_or_later
51 config CC_STATIC_LIBSTDCXX
53 prompt "Link libstdc++ statically into the gcc binary"
55 depends on CC_GCC_4_4_or_later
57 Newer gcc versions use the PPL library which is C++ code. Statically
58 linking libstdc++ increases the likeliness that the gcc binary will
59 run on machines other than the one which it was built on, without
60 having to worry about distributing the matching version of libstdc++
63 config CC_GCC_LIBMUDFLAP
65 prompt "Compile libmudflap"
68 libmudflap is a pointer-use checking tool, which can detect
69 various mis-usages of pointers in C and (to some extents) C++.
71 You should say 'N' here, as libmduflap generates instrumented
72 code (thus it is a bit bigger and a bit slower) and requires
73 re-compilation and re-link, while it exists better run-time
74 alternatives (eg. DUMA, dmalloc...) that need neither re-
75 compilation nor re-link.
79 prompt "Compile libgomp"
82 libgomp is "the GNU implementation of the OpenMP Application Programming
83 Interface (API) for multi-platform shared-memory parallel programming in
84 C/C++ and Fortran". See:
85 http://gcc.gnu.org/onlinedocs/libgomp/
87 The default is 'N'. Say 'Y' if you need it, and report success/failure.
91 prompt "Compile libssp"
94 libssp is the run-time Stack-Smashing Protection library.
96 The default is 'N'. Say 'Y' if you need it, and report success/failure.
98 #-----------------------------------------------------------------------------
100 comment "Misc. obscure options."
104 prompt "Use __cxa_atexit"
106 depends on ! BARE_METAL
108 If you get the missing symbol "__cxa_atexit" when building C++ programs,
109 you might want to try disabling this option.
111 config CC_GCC_DISABLE_PCH
113 prompt "Do not build PCH"
116 Say 'y' here to not use Pre-Compiled Headers in the resulting toolchain.
117 at the expense of speed when compiling C++ code.
119 For some configurations (most notably canadian?), PCH are broken, and
120 need to be disabled. Please see:
121 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974
123 config CC_GCC_SJLJ_EXCEPTIONS
125 prompt "Use sjlj for exceptions"
126 depends on ! BARE_METAL
129 'sjlj' is short for setjmp/longjmp.
131 On some architectures, stack unwinding during exception handling
132 works perfectly well without using sjlj, while on some others,
133 use of sjlj is required for proper stack unwinding.
135 Option | sjlj use | Associated ./configure switch
136 ---------+--------------------+--------------------------------
137 Y | forcibly used | --enable-sjlj-exceptions
138 M | auto | (none, ./configure decides)
139 N | forcibly not used | --disable-sjlj-exceptions
141 It should be safe to say 'M' or 'N'.
143 It can happen that ./configure is wrong in some cases. Known
144 case is for ARM big endian, where you should say 'N'.
146 config CC_GCC_LDBL_128
148 prompt "Enable 128-bit long doubles"
150 depends on CC_GCC_4_2_or_later
152 Saying 'Y' will force gcc to use 128-bit wide long doubles
153 Saying 'N' will force gcc to use 64-bit wide long doubles
154 Saying 'M' will let gcc choose (default is 128-bit for
155 glibc >= 2.4, 64-bit otherwise)
157 If in doubt, keep the default, ie. 'M'.