tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc*-libs help needed: rpath needs fixing



On Tue 03 Sep 2024 at 21:15:43 +0200, Rhialto wrote:
> Ahh.... libb2 is *missing* our path from gcc12-libs for some reason.
> It didn't build a .cwrapper/specs.libgcc file. I have not traced yet why
> not.

This may be it: this fragment from compiler/gcc.mk, for gcc 12, assumes
that you only need the gcc shared libraries for a limited list of
languages:

.elif !empty(_NEED_GCC12:M[yY][eE][sS])
#
# We require gcc-12.x in the lang/gcc12-* directory.
#
_GCC_PKGBASE=           gcc12
.  if ${PKGPATH} == lang/gcc12
_IGNORE_GCC=            yes
MAKEFLAGS+=             _IGNORE_GCC=yes
.  endif
.  if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
_GCC_PKGSRCDIR=         ../../lang/gcc12
_GCC_DEPENDENCY=        gcc12>=${_GCC_REQD}:../../lang/gcc12
.    if !empty(_LANGUAGES.gcc:Mc++) || \
        !empty(_LANGUAGES.gcc:Mfortran) || \
        !empty(_LANGUAGES.gcc:Mfortran77) || \
        !empty(_LANGUAGES.gcc:Mgo) || \
        !empty(_LANGUAGES.gcc:Mobjc) || \
        !empty(_LANGUAGES.gcc:Mobj-c++)
.info _USE_GCC_SHLIB?= yes for gcc12
_USE_GCC_SHLIB?=        yes
.    endif
.  endif

but with libgomp they may be needed for C as well. And I see some more
libraries that might be used by C (although I'm not familiar with them),
such as libquadmath.so.0 (I don't recall where I came across that one
but it looks like a C library at first sight).

So possibly from gcc 12 onwards, C needs to be included in this list as
well.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work.           --I. Rose

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index