## SECTION=architecture_options menu "extra toolchain options " choice prompt "linker hash-style" default TARGET_LINKER_HASH_DEFAULT config TARGET_LINKER_HASH_DEFAULT bool prompt "default " help don't change the default linker hash style config TARGET_LINKER_HASH_SYSV bool prompt "sysv " help add "--hash-style=sysv" to the linker options config TARGET_LINKER_HASH_GNU bool prompt "gnu " help add "--hash-style=gnu" to the linker options config TARGET_LINKER_HASH_BOTH bool prompt "gnu & sysv" help add "--hash-style=both" to the linker options endchoice config TARGET_LINKER_AS_NEEDED bool prompt "Link only needed libraries (ld --as-needed)" help tell the linker to link in the produced binary only the libraries containing symbols actually used by the binary itself. choice prompt "debugging" default TARGET_DEBUG_KEEP config TARGET_DEBUG_OFF bool prompt "disabled (force) " help Disable by force by adding '-g0' to the compiler command-line. config TARGET_DEBUG_KEEP bool prompt "unchanged " help Add no debugging options to the compiler command-line. config TARGET_DEBUG_ENABLE bool prompt "enabled " help Enable debugging by adding "-g" to the compiler command-line. config TARGET_DEBUG_FULL bool prompt "enabled (full) " help Enable debugging by adding "-ggdb3" to the compiler command-line. endchoice config TARGET_MINI_DEBUGINFO bool prompt "add .gnu_debugdata section to the binaries" help Enable this to create and add the .gnu_debugdata section to all binaries. It allows resolving function names when no other debug symbols are available. In combination with some stack unwinding support, it can be used to create readable backtraces, e.g. with systemd-coredump. On x86_64 and AArch64 the stack unwinding can be done with the .eh_frame sections. config TARGET_COMPILER_RECORD_SWITCHES bool prompt "store compiler flags (-frecord-gcc-switches)" default !TARGET_BUILD_ID help Can be read with the 'readelf' tool from the used toolchain and the command line option '-p .GCC.command.line' on any object file or the corresponding .debug/..dbg file. Note: This section is included when the build-id is calculated. This section contains absolute build paths and possible temporary filenames generated by icecc. As a result, with this option enabled, the final binary will likely be different each time a package is rebuilt. config TARGET_NO_SEMANTIC_INTERPOSITION bool prompt "build with -fno-semantic-interposition" help Compile with -fno-semantic-interposition. This can improve performance because allows for better optimization The downside is that this makes LD_PRELOAD impossible. config TARGET_BUILD_ID bool default y config TARGET_EXTRA_CPPFLAGS string prompt "Extra CPPFLAGS (cpp)" help Extra options for the C preprocessor. Note: if conflicting preprocessor options are passed, the options specified by the package's build system take precedence over those specified here. config TARGET_EXTRA_CFLAGS string prompt "Extra CFLAGS (c)" help Extra options for the C compiler. Note: if conflicting compiler options are passed, the options specified by the package's build system take precedence over those specified here. config TARGET_EXTRA_CXXFLAGS string prompt "Extra CXXFLAGS (c++)" help Extra options for the C++ compiler. Note: if conflicting compiler options are passed, the options specified by the package's build system take precedence over those specified here. config TARGET_EXTRA_LDFLAGS string prompt "Extra LDFLAGS (ld)" help Extra options for the linker. Note: if conflicting linker options are passed, the options specified by the package's build system take precedence over those specified here. endmenu