git: kern.post.mk: Early fail the build in case of any duplicate objs

Aaron LI aly at crater.dragonflybsd.org
Sat Jun 20 00:14:56 PDT 2026


commit 4414dac0c0c01d46bf969f21a7f4460c975ae15b
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jun 20 15:06:01 2026 +0800

    kern.post.mk: Early fail the build in case of any duplicate objs
    
    Since all the kernel objects are built and placed in the same directory,
    a conflict is quite possible when two modules have a file with the same
    name.  Another conflict possibility is that the source is specified
    twice in conf/files.
    
    In order to avoid running into mysterious/unexpected issues caused by
    duplicate objects, simply abort the build when such a duplicate is
    found.
    
    Of course, a better solution is to refactor the build framework to
    eliminate such a limitation, so that a module may choose whatever
    filename it likes.

Summary of changes:
 sys/conf/kern.post.mk | 7 +++++++
 1 file changed, 7 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4414dac0c0c01d46bf969f21a7f4460c975ae15b


-- 
DragonFly BSD source repository


More information about the Commits mailing list