packages icon indicating copy to clipboard operation
packages copied to clipboard

git: Force use -O2 when lto enabled

Open Ra2-IFV opened this issue 8 months ago • 0 comments

Git doen't support lto with gcc flag -O3 and -Ofast. This is discussed in openwrt/packages#24366. If CONFIG_USE_LTO=y, filter -O% from CPPFLAGS and set to -O2.

Maintainer: @krant @neheb Compile tested: aarch64 f637cf5ef73bbecaf6183e5c416e3043a5f1e202 Run tested: aarch64 f637cf5ef73bbecaf6183e5c416e3043a5f1e202 looks good

Description:

Ra2-IFV avatar Jun 27 '24 12:06 Ra2-IFV