@xiota, Unfortunately, your trick with LDFLAGS didn't work for me. After few more build iterations with various combinations of flags and options, I suppose the only working option is to disable LTO for soci.
You can find updated PKGBUILD here: https://github.com/trap000d/aur/tree/master/soci
as well as new RStudio pkgrel: https://github.com/trap000d/aur/tree/master/rstudio-desktop
So I'm going to write to soci AUR maintainer and ask to add '!lto' option.
Could you please test my variants of these packages before? There is a probability I've missed something, or changed some new default makepkg settings accidentally.
Possible alternatives are:
- Ask users to disable lto globally
- Wait for the new soci release - hopefully it will no issues with linker. It's unclear, though, when it would be announced: https://github.com/SOCI/soci/discussions/1113
Pinned Comments
xiota commented on 2025-03-01 05:16 (UTC) (edited on 2025-05-01 20:46 (UTC) by xiota)
Packaging notes:
pacman -Syudd
prior to rebuilding. This is unnecessary when building in a clean chroot.: ${var:=value}
can be set in the environment prior to build.var=value makepkg -rsC
; Method for AUR helpers may vary.extra-x86_64-build -- var=value
Problems?