Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 2021 23:14:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 257167] Mk/Uses/compiler.mk: openmp unnecessarily sets USE_GCC=yes (on some architectures_
Message-ID:  <bug-257167-7788-SAWbOnsFac@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-257167-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257167-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257167

--- 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+=3D      -nostdinc++ -isystem /usr/include/c++/v1
LDFLAGS+=3D       -L${WRKDIR}

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257167-7788-SAWbOnsFac>