mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Set -m32 in MD LIB32CPUCFLAGS rather than MI LIB32CFLAGS.
Both amd64 and powerpc64 use -m32 to compile 32-bit binaries, but not all platforms follow this convention. Move the -m32 compile flag into the per-architecture flags to accomodate other architectures. Sponsored by: DARPA / AFRL
This commit is contained in:
parent
dc6e1047ce
commit
452a310167
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311566
|
@ -15,6 +15,7 @@ LIB32CPUFLAGS= -march=i686 -mmmx -msse -msse2
|
||||||
.else
|
.else
|
||||||
LIB32CPUFLAGS= -march=${TARGET_CPUTYPE}
|
LIB32CPUFLAGS= -march=${TARGET_CPUTYPE}
|
||||||
.endif
|
.endif
|
||||||
|
LIB32CPUFLAGS+= -m32
|
||||||
LIB32WMAKEENV= MACHINE=i386 MACHINE_ARCH=i386 \
|
LIB32WMAKEENV= MACHINE=i386 MACHINE_ARCH=i386 \
|
||||||
MACHINE_CPU="i686 mmx sse sse2"
|
MACHINE_CPU="i686 mmx sse sse2"
|
||||||
LIB32WMAKEFLAGS= \
|
LIB32WMAKEFLAGS= \
|
||||||
|
@ -28,6 +29,7 @@ LIB32CPUFLAGS= -mcpu=powerpc
|
||||||
.else
|
.else
|
||||||
LIB32CPUFLAGS= -mcpu=${TARGET_CPUTYPE}
|
LIB32CPUFLAGS= -mcpu=${TARGET_CPUTYPE}
|
||||||
.endif
|
.endif
|
||||||
|
LIB32CPUFLAGS+= -m32
|
||||||
LIB32WMAKEENV= MACHINE=powerpc MACHINE_ARCH=powerpc
|
LIB32WMAKEENV= MACHINE=powerpc MACHINE_ARCH=powerpc
|
||||||
LIB32WMAKEFLAGS= \
|
LIB32WMAKEFLAGS= \
|
||||||
LD="${XLD} -m elf32ppc_fbsd" \
|
LD="${XLD} -m elf32ppc_fbsd" \
|
||||||
|
@ -35,7 +37,7 @@ LIB32WMAKEFLAGS= \
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
||||||
LIB32CFLAGS= -m32 -DCOMPAT_32BIT
|
LIB32CFLAGS= -DCOMPAT_32BIT
|
||||||
LIB32DTRACE= ${DTRACE} -32
|
LIB32DTRACE= ${DTRACE} -32
|
||||||
LIB32WMAKEFLAGS+= -DCOMPAT_32BIT
|
LIB32WMAKEFLAGS+= -DCOMPAT_32BIT
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue