config CC_OPTIMIZE_FOR_SIZE
- bool "Optimize for size" if EMBEDDED
+ bool "Optimize for size"
default y if ARM || H8300
default n
help
De init/Kconfig :
config CC_OPTIMIZE_FOR_SIZE
bool "Optimize for size"
default y if ARM || H8300
default n
help
Enabling this option will pass "-Os" instead of "-O2" to gcc
resulting in a smaller kernel.
WARNING: some versions of gcc may generate incorrect code with this
option. If problems are observed, a gcc upgrade may be needed.
If unsure, say N.
C'est activé par défaut :
$ grep CC_OPTIMIZE_FOR_SIZE /boot/config-2.6.8-1.541
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
[^] # Re: C'est drôle
Posté par Ayrton . En réponse au journal Vous n'êtes pas sous Gentoo : gardez la tête haute. Évalué à 1.
diff -urNp linux-1130/init/Kconfig linux-10000/init/Kconfig
--- linux-1130/init/Kconfig
+++ linux-10000/init/Kconfig
@@ -264,7 +264,7 @@ config EPOLL
source "drivers/block/Kconfig.iosched"
config CC_OPTIMIZE_FOR_SIZE
- bool "Optimize for size" if EMBEDDED
+ bool "Optimize for size"
default y if ARM || H8300
default n
help
De init/Kconfig :
config CC_OPTIMIZE_FOR_SIZE
bool "Optimize for size"
default y if ARM || H8300
default n
help
Enabling this option will pass "-Os" instead of "-O2" to gcc
resulting in a smaller kernel.
WARNING: some versions of gcc may generate incorrect code with this
option. If problems are observed, a gcc upgrade may be needed.
If unsure, say N.
C'est activé par défaut :
$ grep CC_OPTIMIZE_FOR_SIZE /boot/config-2.6.8-1.541
CONFIG_CC_OPTIMIZE_FOR_SIZE=y