[Bug 227920] [PATCH] fix for Makefile.libcompat to use external cross-compiler
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri May 4 23:25:57 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227920
--- Comment #1 from Bryan Drewery <bdrewery at 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+= -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+= -B${CROSS_BINUTILS_PREFIX}
.endif
Makefile.libcompat:
LIBCOMPATCFLAGS+= ${LIBCOMPATCPUFLAGS} \
-L${LIBCOMPATTMP}/usr/lib${libcompat} \
--sysroot=${LIBCOMPATTMP} \
${BFLAGS}
^^^^^^^^^^
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list