git: share/mk: Support per-target flags and explicit source mapping
Aaron LI
aly at crater.dragonflybsd.org
Sat Oct 31 19:48:14 PDT 2026
commit f311c5f9fc99ea252fb0b7478706be86f2422043
Author: Aaron LI <aly at aaronly.me>
Date: Sat Oct 31 17:12:53 2026 +0800
share/mk: Support per-target flags and explicit source mapping
* Add the "FLAGS.<target>.o" variable to specify per-target flags for
compiling a library target of all kinds, i.e., <target>.o, <target>.po
and <target>.So.
* Implement the reusable "_LIB_COMPILE.<ext>" compile rules to support
explicit source mapping. This is required to support compiling one
source file into multiple objects with different defines/flags.
The two features are combined to avoid duplicating the explicit compile
commands in GCC libraries (i.e., libgcc, libgcov, and libatomic).
Summary of changes:
share/mk/bsd.README | 11 +++++++----
share/mk/bsd.lib.mk | 30 ++++++++++++++++++++++++++++++
share/mk/sys.mk | 10 ++++++----
3 files changed, 43 insertions(+), 8 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f311c5f9fc99ea252fb0b7478706be86f2422043
--
DragonFly BSD source repository
More information about the Commits
mailing list