git: cc120: Move main.cc from guts-common to libbackend

Aaron LI aly at crater.dragonflybsd.org
Sun Nov 8 05:52:50 PST 2026


commit e2efadbbb650d239cfee054edbcb826efb1239de
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Nov 8 09:33:00 2026 +0800

    cc120: Move main.cc from guts-common to libbackend
    
    The vendor makefile specifies 'main.o' with 'libbackend.a' as in:
    ```
    BACKEND = libbackend.a main.o libcommon-target.a libcommon.a \
            $(CPPLIB) $(LIBDECNUMBER)
    ```
    
    In addition, backend 'lto-wrapper' and 'collect2' have their own
    'main()' definition, so don't need the 'main.o' object.
    
    So it's more correct to move 'main.cc' from guts-common to libbackend.

Summary of changes:
 gnu/usr.bin/cc120/backends/guts/guts-common/Makefile | 1 -
 gnu/usr.bin/cc120/backends/programs/lto1/Makefile    | 1 -
 gnu/usr.bin/cc120/libbackend/Makefile                | 1 +
 3 files changed, 1 insertion(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e2efadbbb650d239cfee054edbcb826efb1239de


-- 
DragonFly BSD source repository


More information about the Commits mailing list