Page MenuHomeFreeBSD

Move -L${LIBCOMPATTMP}/usr/lib${libcompat} from CFLAGS to LDFLAGS.
ClosedPublic

Authored by jhb on Aug 14 2020, 5:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 8, 9:38 PM
Unknown Object (File)
Wed, Apr 8, 12:17 AM
Unknown Object (File)
Tue, Apr 7, 11:27 PM
Unknown Object (File)
Thu, Apr 2, 6:58 AM
Unknown Object (File)
Wed, Apr 1, 2:26 AM
Unknown Object (File)
Mon, Mar 30, 9:01 AM
Unknown Object (File)
Sat, Mar 28, 6:16 PM
Unknown Object (File)
Wed, Mar 25, 3:17 PM
Subscribers

Details

Summary

This is only needed when linking and fixes various "unused command
line argument" warnings during the lib32 build.

While here, trim a redundant -L from the i386 LD variable.

Obtained from: CheriBSD

Test Plan
  • make tinderbox and verified for amd64 that various warnings about unused arguments disappeared

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32997
Build 30386: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Aug 14 2020, 5:29 PM

If it passes universe then +1. I wonder if this was a workaround for bfd or just an old mistake.

This revision is now accepted and ready to land.Aug 14 2020, 10:28 PM

It looks like all of this (putting -L in CFLAGS and an explicit -L (originally a -Y) for the i386 LD all goes back to the original hacks Peter did for lib32 in rS137288.