git: share/mk: Update suffix rules to avoid duplicates

Aaron LI aly at crater.dragonflybsd.org
Sat Oct 31 19:48:14 PDT 2026


commit 5e06624bb48a1989e9609a3c10d2144fc4f22a6a
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Oct 30 21:51:04 2026 +0800

    share/mk: Update suffix rules to avoid duplicates
    
    * Add ${STATIC_CFLAGS} and ${STATIC_CXXFLAGS} flags to the .c and .cc
      rules in <sys.mk>, so that they can be reused by <bsd.lib.mk>.  The
      ${STATIC_CFLAGS} is only used by lib/libpam.
    * Use the .o suffix rules from <sys.mk> and remove the duplicates in
      <bsd.lib.mk>.
    * Fix the .s rule to compile with "${AS} ${AFLAGS}", the same rule as
      defined in <sys.mk>.
    * Fix the .S rule to compile with "${CC} -x assembler-with-cpp" instead
      of plain ${CC}.
    * Some minor tweaks for consistency.
    
    Also referred to FreeBSD.

Summary of changes:
 share/mk/bsd.lib.mk | 47 +++++++++++------------------------------------
 share/mk/sys.mk     | 18 +++++++++---------
 2 files changed, 20 insertions(+), 45 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5e06624bb48a1989e9609a3c10d2144fc4f22a6a


-- 
DragonFly BSD source repository


More information about the Commits mailing list