Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 May 2018 23:25:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 227920] [PATCH] fix for Makefile.libcompat to use external cross-compiler
Message-ID:  <bug-227920-227-E1L3ksnZIP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227920-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227920-227@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=3D227920

--- Comment #1 from Bryan Drewery <bdrewery@FreeBSD.org> ---
This isn't complete as GCC does not support -target. But it seems wrong to =
me
to need -target. I've never had problems cross-compiling with the external
compilers so far, though I may not have tried with clang.




LIB32CFLAGS+=3D   -B${CROSS_BINUTILS_PREFIX}

This -B flag is already being added via ${BFLAGS}.

Makefile.inc1:

.if defined(CROSS_BINUTILS_PREFIX) && exists(${CROSS_BINUTILS_PREFIX})
# In the case of xdev-build tools, CROSS_BINUTILS_PREFIX won't be a
# directory, but the compiler will look in the right place for its
# tools so we don't need to tell it where to look.
BFLAGS+=3D        -B${CROSS_BINUTILS_PREFIX}
.endif

Makefile.libcompat:

LIBCOMPATCFLAGS+=3D       ${LIBCOMPATCPUFLAGS} \=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20
                        -L${LIBCOMPATTMP}/usr/lib${libcompat} \
                        --sysroot=3D${LIBCOMPATTMP} \=20=20=20=20=20=20=20=
=20=20=20=20=20
                        ${BFLAGS}=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
                       ^^^^^^^^^^

--=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-227920-227-E1L3ksnZIP>