1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
5 depends on ADK_TARGET_OS_LINUX
8 config ADK_TARGET_USE_SHARED_LIBS_ONLY
9 bool "Create shared libraries only and link dynamically"
10 depends on !ADK_TARGET_BINFMT_FLAT && !ADK_TARGET_BINFMT_DSBT
12 config ADK_TARGET_USE_STATIC_LIBS_ONLY
13 bool "Create static libraries only and link statically"
16 Useful for debugging of dynamic linker problems. Be aware of the fact, that uClibc and glibc
17 still requires libgcc_so.so.1 for pthread_cancel. Glibc also requires libnss_*.so libraries
18 at runtime. Full static builds are only supported for musl libc.
20 config ADK_TARGET_USE_SHARED_AND_STATIC_LIBS
21 bool "Create shared and static libraries and link dynamically"
22 depends on !ADK_TARGET_BINFMT_FLAT && !ADK_TARGET_BINFMT_DSBT
27 depends on ADK_TARGET_OS_LINUX
28 bool "Iconv implementation"
30 config ADK_TARGET_LIBC_ICONV
31 bool "Use iconv from C library"
33 config ADK_TARGET_LIBICONV
34 bool "Use libiconv package"
35 select ADK_PACKAGE_LIBICONV
37 config ADK_TARGET_WITHOUT_ICONV
38 bool "Do not build any iconv code"
42 config ADK_TARGET_CFLAGS_OPT
44 default "-Os -pipe" if ADK_TARGET_CFLAGS_OPT_OS
45 default "-Og -pipe" if ADK_TARGET_CFLAGS_OPT_OG
46 default "-O2 -pipe" if ADK_TARGET_CFLAGS_OPT_O2
47 default "-O3 -pipe" if ADK_TARGET_CFLAGS_OPT_O3
48 default "-O0 -pipe" if ADK_TARGET_CFLAGS_OPT_O0
51 bool "Optimization level"
53 config ADK_TARGET_CFLAGS_OPT_OS
54 bool "optimize for size (-Os)"
56 config ADK_TARGET_CFLAGS_OPT_OG
57 bool "optimize, but allow debugging (-Og)"
59 config ADK_TARGET_CFLAGS_OPT_O1
60 bool "optimize for minor performance (-O1)"
62 config ADK_TARGET_CFLAGS_OPT_O2
63 bool "optimize for performance (-O2)"
65 config ADK_TARGET_CFLAGS_OPT_O3
66 bool "optimize for extra performance (-O3)"
68 config ADK_TARGET_CFLAGS_OPT_O0
69 bool "no optimization (-O0)"
73 menu "Compiler language support"
74 config ADK_TOOLCHAIN_WITH_CXX
77 config ADK_TOOLCHAIN_WITH_OBJC
78 bool "enable Objective-C"
80 config ADK_TOOLCHAIN_WITH_FORTRAN
82 select ADK_PACKAGE_LIBGFORTRAN
84 config ADK_TOOLCHAIN_WITH_GO
86 select ADK_PACKAGE_LIBGO
90 menu "Advanced Toolchain options"
92 config ADK_TOOLCHAIN_WITH_SSP
95 config ADK_TARGET_USE_SSP
96 bool "Use Stack Smashing Protection for all packages"
97 select ADK_TOOLCHAIN_WITH_SSP
99 config ADK_TARGET_USE_PIE
100 bool "Use Position Independent Executable for packages with have support for it"
102 config ADK_TOOLCHAIN_WITH_LTO
105 config ADK_TARGET_USE_LTO
106 bool "Use Link Time Optimization for all packages"
107 select ADK_TOOLCHAIN_WITH_LTO
109 config ADK_TARGET_USE_LD_RELRO
110 bool "Use LD read-only (-z relro) relocations for all packages"
112 config ADK_TARGET_USE_LD_BIND_NOW
113 bool "Use LD bind now (-z now) for all packages"
115 config ADK_TARGET_USE_LD_GC
116 bool "Use LD garbage collection for all packages"
118 config ADK_TOOLCHAIN_WITH_GOLD
119 bool "Enable building of GOLD linker"
121 config ADK_TARGET_USE_GOLD
122 bool "Use GOLD as default linker"
123 depends on ADK_TOOLCHAIN_WITH_GOLD
124 depends on ADK_TARGET_LIB_GLIBC # can not be build with GOLD (glibc 2.24 checked)
126 config ADK_TARGET_USE_GNU_HASHSTYLE
127 bool "Use GNU hashstyle for all packages"
128 depends on !ADK_TARGET_ARCH_MIPS
129 depends on !ADK_TARGET_ARCH_MIPS64
131 Performance optimization for applications with lot of shared library
132 dependencies. See http://www.akkadia.org/drepper/dsohowto.pdf
135 bool "Compile applications with debug support and do not strip"
137 All software for the target will be compiled with:
138 -fno-omit-frame-pointer
140 -fasynchronous-unwind-tables
141 Software will not be stripped.
142 Mostly useful for NFS root or big USB/CF or hard disk setups.
144 config ADK_DEBUG_STRIP
145 bool "strip target binaries/libraries for gdbserver usage"
148 All packages and C library will be compiled with debug information,
149 but stripped for the target.
151 config ADK_STATIC_TOOLCHAIN
152 bool "Build the toolchain components statically (portable host binaries)"
154 If you want to create more portable toolchains, build them static.
157 bool "Prelink binaries and libraries in Image"
158 depends on ADK_TARGET_OS_LINUX
160 Do prelinking for faster loading of binaries.
162 config ADK_PRELINK_OPTS
163 string "additional options to pass to prelink"
165 depends on ADK_PRELINK