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
F146956263: D26068.diff
Sat, Mar 7, 2:51 AM
Unknown Object (File)
Wed, Mar 4, 3:52 AM
Unknown Object (File)
Tue, Mar 3, 9:39 PM
Unknown Object (File)
Tue, Mar 3, 11:20 AM
Unknown Object (File)
Tue, Mar 3, 10:04 AM
Unknown Object (File)
Sun, Mar 1, 4:44 PM
Unknown Object (File)
Sat, Feb 28, 5:28 PM
Unknown Object (File)
Sat, Feb 28, 5:28 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.