git: gcc120: Fix compatibility.So building in libstdcxx

Aaron LI aly at crater.dragonflybsd.org
Sun Apr 5 04:59:20 PDT 2026


commit f36f570664a67d4f7b053ba4ee7dd80f4e071488
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Apr 5 19:37:54 2026 +0800

    gcc120: Fix compatibility.So building in libstdcxx
    
    My previous commit 1f0bbf647d9751967ce37b93246695bb2c7e819c actually
    fixed the building of the extra .So objects for libstdcxx by adding the
    missing '-D_GLIBCXX_SHARED' CXXFLAGS.  However, the 'compatibility.So'
    object failed to build after the commit because of the two reasons:
    
    - The <bits/compatibility.h> header was missing.  It was even removed on
      the vendor branch.
    - The '-std=gnu++98' was missing on the compilation command.
    
    This commit prepares the needed <bits/compatibility.h> header, and adds
    the 'gnu98' flags group for the ${cxx98_sources}.

Summary of changes:
 gnu/lib/gcc120/libstdcxx/headers/Makefile.headers | 6 ++++++
 gnu/lib/gcc120/libstdcxx/product/Makefile         | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list