diff --git a/utils.go b/utils.go index 4d8dc09..0fd419c 100644 --- a/utils.go +++ b/utils.go @@ -726,7 +726,7 @@ func setupMakepkg(march string) error { } makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ") // Add align-functions=32, see https://github.com/InBetweenNames/gentooLTO/issues/164 for more - makepkgStr = strings.ReplaceAll(makepkgStr, "-O2", "-O3 -falign-functions=32 -mpclmul -devirtualize-at-ltrans") + makepkgStr = strings.ReplaceAll(makepkgStr, "-O2", "-O3 -falign-functions=32 -mpclmul -fdevirtualize-at-ltrans") makepkgStr = strings.ReplaceAll(makepkgStr, "#MAKEFLAGS=\"-j2\"", "MAKEFLAGS=\"-j"+strconv.Itoa(conf.Build.Makej)+"\"") makepkgStr = reMarch.ReplaceAllString(makepkgStr, "${1}"+march) makepkgStr = strings.ReplaceAll(makepkgStr, "#PACKAGER=\"John Doe \"", "PACKAGER=\"ALHP "+march+" \"") @@ -743,7 +743,7 @@ func setupMakepkg(march string) error { // Remove align-functions=32, which is enabled because of LTO and not needed without makepkgStr = strings.ReplaceAll(makepkgStr, "-falign-functions=32", "") // Remove devirtualize-at-ltrans, which is only helpful when using LTO and not needed without - makepkgStr = strings.ReplaceAll(makepkgStr, "-devirtualize-at-ltrans", "") + makepkgStr = strings.ReplaceAll(makepkgStr, "-fdevirtualize-at-ltrans", "") // write non-lto makepkg err = os.WriteFile(lMakepkgLTO, []byte(makepkgStr), 0644)