mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 12:53:33 +00:00
Conditionally define "CROSS_COMPILE" here.
This commit is contained in:
parent
bcff338667
commit
7994fa95cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60780
@ -8,6 +8,9 @@ PROG= as
|
||||
.if ${MACHINE_ARCH} != "mipsel" && ${MACHINE_ARCH} != "mipseb"
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/mips-freebsd
|
||||
# If we aren't doing cross-assembling, some operations can be optimized, since
|
||||
# byte orders and value sizes don't need to be adjusted.
|
||||
CFLAGS+= -DCROSS_COMPILE=1
|
||||
.endif
|
||||
.if ${MACHINE_ARCH} == "mipsel"
|
||||
CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=0
|
||||
|
@ -1,12 +1,16 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc0"
|
||||
|
||||
PROG= as
|
||||
.if ${TARGET_ARCH} != "powerpc"
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/powerpc-freebsd
|
||||
# If we aren't doing cross-assembling, some operations can be optimized, since
|
||||
# byte orders and value sizes don't need to be adjusted.
|
||||
CFLAGS+= -DCROSS_COMPILE=1
|
||||
.endif
|
||||
SRCS+= obj-elf.c tc-ppc.c
|
||||
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -8,6 +8,9 @@ PROG= as
|
||||
.if ${TARGET_ARCH} != "sparc"
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/sparc-freebsd
|
||||
# If we aren't doing cross-assembling, some operations can be optimized, since
|
||||
# byte orders and value sizes don't need to be adjusted.
|
||||
CFLAGS+= -DCROSS_COMPILE=1
|
||||
.endif
|
||||
SRCS+= obj-elf.c tc-sparc.c
|
||||
|
||||
|
@ -8,6 +8,9 @@ PROG= as
|
||||
.if ${TARGET_ARCH} != "sparc64"
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/sparc64-freebsd
|
||||
# If we aren't doing cross-assembling, some operations can be optimized, since
|
||||
# byte orders and value sizes don't need to be adjusted.
|
||||
CFLAGS+= -DCROSS_COMPILE=1
|
||||
.endif
|
||||
SRCS+= obj-elf.c tc-sparc.c
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user