Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2022 20:22:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        uboot@FreeBSD.org
Subject:   [Bug 266404] sysutils/edk2: on aarch64, edk2 fails to build for FreeBSD aarch64 libgcc_s.so.1 issues
Message-ID:  <bug-266404-39090-Hsjm0AdxXP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-266404-39090@https.bugs.freebsd.org/bugzilla/>
References:  <bug-266404-39090@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=3D266404

--- Comment #4 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #3)

Looks like my attempt is wasteful garbage.

/usr/ports/Mk/bsd.gcc.mk has:

# A concrete version has been selected. Set proper ports dependencies,
# CC, CXX, CPP, and flags.
V:=3D                     ${_USE_GCC:S/.//}
.  if ${V} =3D=3D 13
_GCC_PORT:=3D             gcc${V}-devel
.  else
_GCC_PORT:=3D             gcc${V}
.  endif
CC:=3D                    gcc${V}
CXX:=3D                   g++${V}
CPP:=3D                   cpp${V}
_GCC_RUNTIME:=3D          ${LOCALBASE}/lib/gcc${V}
.  if ${PORTNAME} =3D=3D gcc
# We don't want the rpath stuff while building GCC itself
# so we do not set the FLAGS as done in the else part.
# When building a GCC, we want the target libraries to be used and not the
# host GCC libraries.
.  else
CFLAGS+=3D                -Wl,-rpath=3D${_GCC_RUNTIME}
CXXFLAGS+=3D              -Wl,-rpath=3D${_GCC_RUNTIME}
LDFLAGS+=3D               -Wl,-rpath=3D${_GCC_RUNTIME} -L${_GCC_RUNTIME}
.  endif
.undef V

So use of either the CFLAGS/CXXFLAGS/LDFLAGS or use of the likes of:

-Wl,-rpath=3D${_GCC_RUNTIME} -L${_GCC_RUNTIME}

would autoadjust, allowing :build+ use. I see only about 4 ports
with Makefiles directly using _GCC_RUNTIME .

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266404-39090-Hsjm0AdxXP>