Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.cpu.mk
Show First 20 Lines • Show All 406 Lines • ▼ Show 20 Lines | |||||
CFLAGS_NO_SIMD= -mno-mmx -mno-sse | CFLAGS_NO_SIMD= -mno-mmx -mno-sse | ||||
.endif | .endif | ||||
CFLAGS_NO_SIMD += ${CFLAGS_NO_SIMD.${COMPILER_TYPE}} | CFLAGS_NO_SIMD += ${CFLAGS_NO_SIMD.${COMPILER_TYPE}} | ||||
# Add in any architecture-specific CFLAGS. | # Add in any architecture-specific CFLAGS. | ||||
# These come from make.conf or the command line or the environment. | # These come from make.conf or the command line or the environment. | ||||
CFLAGS += ${CFLAGS.${MACHINE_ARCH}} | CFLAGS += ${CFLAGS.${MACHINE_ARCH}} | ||||
CXXFLAGS += ${CXXFLAGS.${MACHINE_ARCH}} | CXXFLAGS += ${CXXFLAGS.${MACHINE_ARCH}} | ||||
# Define ld.bfd as alternative linker to workaround ld.lld bugs | |||||
.if defined(CROSS_BINUTILS_PREFIX) | |||||
imp: Right now CROSS_BINUTILS_PREFIX is defined only in Makefile.inc1, which I don't think exports… | |||||
alfredoAuthorUnsubmitted Done Inline ActionsCase "LD_BFD=${LOCALBASE}/bin/${CROSS_BINUTILS_PREFIX}-ld.bfd" seems to cover the native build. The correct linker path being passed to clang in my tests. Regarding CROSS_BINUTILS_PREFIX, it's defined in the standard toolchain file (i.e: pkg install "powerpc64-xtoolchain-gcc-0.4_1" on amd64). That's the case I would like to cover alfredo: Case "LD_BFD=${LOCALBASE}/bin/${CROSS_BINUTILS_PREFIX}-ld.bfd" seems to cover the native build. | |||||
alfredoAuthorUnsubmitted Done Inline ActionsI'm not sure "in tree" build is covered here. But it can be handled after flagday, or it may not be needed in the near future, since ld.lld full support for PowerPC32 bit is almost complete and this LD_BFD workaround is temporary. alfredo: I'm not sure "in tree" build is covered here. But it can be handled after flagday, or it may… | |||||
LD_BFD=${LOCALBASE}/bin/${CROSS_BINUTILS_PREFIX}-ld.bfd | |||||
.else | |||||
LD_BFD=${OBJTOP}/tmp/usr/bin/ld.bfd | |||||
.endif |
Right now CROSS_BINUTILS_PREFIX is defined only in Makefile.inc1, which I don't think exports this variable to the dependent make processes... I'm also unsure how this would work in a standalone build on a powerpc platform...
It's likely OK enough since most people don't do builds on native powerpc platforms outside of a buildworld, but that's supposed to work and may not w/o setting this variable by hand...