Page MenuHomeFreeBSD

Makefile.inc1: add LIBCOMPAT_INCLUDE_DIRS to reduce arch ifdefs
ClosedPublic

Authored by karels on Jul 11 2023, 7:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 8:19 AM
Unknown Object (File)
Fri, Nov 29, 4:41 PM
Unknown Object (File)
Nov 25 2024, 2:42 PM
Unknown Object (File)
Nov 24 2024, 5:28 AM
Unknown Object (File)
Nov 23 2024, 1:15 PM
Unknown Object (File)
Nov 21 2024, 6:30 AM
Unknown Object (File)
Nov 20 2024, 3:48 PM
Unknown Object (File)
Nov 8 2024, 7:50 AM
Subscribers

Details

Summary

In preparation for adding support for building lib32 on arm64,
add a list of architecture-specific include directories,
LIBCOMPAT_INCLUDE_DIRS, then replace the architecture-specific
ifdefs throughout the file with simple loops. Another commit
will add a definition of LIBCOMPAT_INCLUDE_DIRS for aarch64.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Makefile.inc1
1089

Leave these as usr/include to match surrounding code?

Makefile.inc1
1089

I debated that. I don't know if INCLUDEDIR could be overridden here. I guess other uses have usr/include though.

Makefile.inc1
1089

Yeah; whether it makes sense to use INCLUDEDIR here throughout I don't know, probably not given the use of mtree files that hard-code usr/include, but even if it does that's a bigger change to do throughout

LGTM with lone comment addressed

Makefile.inc1
1424

This didn't have -p before; probably it should, but that's a separate change that shouldn't be here (and you shouldn't feel compelled to do :))

This revision is now accepted and ready to land.Jul 12 2023, 4:10 PM
Makefile.inc1
1424

That would mean a target more than one level down from usr/include would need to have its parent(s) listed separately, and in order. While generalizing, why not generalize?

Makefile.inc1
1424

Well the METALOG code needs the parents to be listed separately otherwise they won't end up in the file, so that restriction is totally fine