[Bug 262871] share/mk/bsd.cpu.mk: missing -mabi= in LDFLAGS

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 27 Mar 2022 21:04:11 UTC

            Bug ID: 262871
           Summary: share/mk/bsd.cpu.mk: missing -mabi= in LDFLAGS
           Product: Base System
           Version: CURRENT
          Hardware: riscv
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: pkubaj@FreeBSD.org

All ports that enable LTO by default either downstream (port option) or
upstream are broken on riscv64. During build object files are built with
-mabi=lp64d (hard float) but linking happens with implicit -mabi=lp64 (soft
float). LTO postpones optimization until linking, so ABI must match.


You are receiving this mail because:
You are the assignee for the bug.