[Bug 257167] Mk/Uses/compiler.mk: openmp unnecessarily sets USE_GCC=yes (on some architectures_

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 21 Aug 2021 23:14:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257167

--- Comment #5 from Piotr Kubaj <pkubaj@FreeBSD.org> ---
(In reply to Jason W. Bacon from comment #4)
That's not enough, programs using C++ will be mislinked.

On affected architectures, it should also add the necessary CXXFLAGS and
LDFLAGS:
CXXFLAGS+=      -nostdinc++ -isystem /usr/include/c++/v1
LDFLAGS+=       -L${WRKDIR}

_USES_configure+=       200:gcc-libc++-configure
gcc-libc++-configure:
        @${LN} -fs /usr/lib/libc++.so ${WRKDIR}/libstdc++.so

-- 
You are receiving this mail because:
You are on the CC list for the bug.