summaryrefslogtreecommitdiff
path: root/config/cc/gcc.in.2
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-06-27 11:52:15 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-06-27 11:52:15 (GMT)
commit9c8bde853c0873da0f3e113128a4ba0e6acdc01f (patch)
tree73d5765d9ea293c19a4d5e128f3c1e016e65579e /config/cc/gcc.in.2
parent2dfb4412bf200b63bcd6c1868ea14bc5b8f259ad (diff)
cc/gcc: add build-id option
Add an option to configure gcc with --enable-linker-build-id. Reported-by: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'config/cc/gcc.in.2')
-rw-r--r--config/cc/gcc.in.213
1 files changed, 13 insertions, 0 deletions
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2
index c8d991a..0fbb018 100644
--- a/config/cc/gcc.in.2
+++ b/config/cc/gcc.in.2
@@ -198,3 +198,16 @@ config CC_GCC_LDBL_128
glibc >= 2.4, 64-bit otherwise)
If in doubt, keep the default, ie. 'M'.
+
+config CC_GCC_BUILD_ID
+ bool
+ prompt "Enable build-id"
+ depends on CC_GCC_HAS_BUILD_ID
+ help
+ Tells GCC to pass --build-id option to the linker for all final
+ links (links performed without the -r or --relocatable option),
+ if the linker supports it. If you say 'y' here, but your linker
+ does not support --build-id option, a warning is issued and this
+ option is ignored.
+
+ The default is off.