[Bug 260139] devel/llvm13: include libc++ in the package

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 Nov 2021 14:46:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260139

            Bug ID: 260139
           Summary: devel/llvm13: include libc++ in the package
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
          Assignee: brooks@FreeBSD.org
             Flags: maintainer-feedback?(brooks@FreeBSD.org)

Some of my ports (e.g., rpcs3, yuzu) require very recent libc++ but ports/ have
to support up to 2 years old version shipped with a FreeBSD -RELEASE. Upstream
projects also want to test recent libc++ on CI without waiting for FreeBSD to
make a -RELEASE with such a version. So, can you enable libc++?

Current ports/ workaround:

GH_TUPLE+=      llvm:llvm-project:llvmorg-13.0.1-rc1:libcxx
CXXFLAGS+=      -nostdinc++ -isystem${WRKDIR}/libcxx_prefix/include/c++/v1
LDFLAGS+=       -nostdlib++ -L${WRKDIR}/libcxx_prefix/lib -l:libc++.a -lcxxrt

pre-configure:  bundled-libcxx
bundled-libcxx:
        @${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS:M*Ninja*} \
                -DCMAKE_INSTALL_PREFIX:PATH=${WRKDIR}/libcxx_prefix \
                -B ${WRKDIR}/libcxx_build -S ${WRKSRC_libcxx}/libcxx
        @${DO_MAKE_BUILD:NDESTDIR*} install -C ${WRKDIR}/libcxx_build

-- 
You are receiving this mail because:
You are the assignee for the bug.