arch-meson doesn't honor options=(!lto)
Task Info (Flyspray) | |
---|---|
Opened By | Lone_Wolf (Lone_Wolf) |
Task ID | 78286 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-04-22 14:30:55 UTC |
Status | Assigned |
Assignee | Jan Alexander Steffens (heftig) |
Assignee | Levente Polyak (anthraxx) |
Details
meson 1.0.1-1
During troubleshooting build issues with AUR mesa-git & directx-headers-git I realised that a setting in arch-meson was causing the build issues.
The problem setting is this line in the arch-meson script : -D b_lto=true \
This forces building with LTO enabled. using the !lto flag in options= array has no effect on this . Only changing the build flags with export CXXFLAGS="$CXXFLAGS -fno-lto" to forefully block lto works.
Reproduce : Comment the CXXFLAGS line in directx-headers pacakge, add option=(!lto) . build directx-headers using devtools and study the build() log . Notice that lto is NOT disabled .
Please deprecate the arch-meson script and remove it from meson package after a transition period . If that is not possible, remove the b_lto=true line from it.
Additional info:
- package version(s)
- config and/or log files etc.
- link to upstream bug report, if any
Steps to reproduce: