]> git.ipfire.org Git - thirdparty/openwrt.git/commit
rules.mk: respect the empty CONFIG_HOST_FLAGS_OPT 18815/head
authorShiji Yang <yangshiji66@outlook.com>
Fri, 16 May 2025 11:30:30 +0000 (19:30 +0800)
committerRobert Marko <robimarko@gmail.com>
Fri, 16 May 2025 18:42:43 +0000 (20:42 +0200)
commit17eeb6c3faf5a1130738498c60766227b655d6bb
treec6508d05a60f734fe60cc5cc2b156ab6d0ff0c7b
parentf060615a78e5c5e86829b2e40c3f77e5cf7033bf
rules.mk: respect the empty CONFIG_HOST_FLAGS_OPT

Currently, the empty CONFIG_HOST_FLAGS_OPT will be overridden by
"-O2". Fix this issue by checking if its parent menuconfig symbol
CONFIG_OPTIMIZE_HOST_TOOLS was defined.

Fixes: e3bec5692c50 ("rules.mk: set default host tools GCC optimization level to -O2")
Reported-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18815
Signed-off-by: Robert Marko <robimarko@gmail.com>
rules.mk