mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
If a CPUTYPE isn't specified, then don't use -march=k8 when compiling
32-bit compat libs on amd64 since -march=k8 may generate instructions that are not implemented on Intel EM64T processors. Instead, use a simpler set of default flags that should work on all amd64-capable CPUs. PR: amd64/113111 Submitted by: NIIMI Satoshi sa2c of sa2c.net MFC after: 1 week
This commit is contained in:
parent
2bb4c6f922
commit
c7f23b871f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181871
@ -259,11 +259,11 @@ WMAKE= ${WMAKEENV} ${MAKE} -f Makefile.inc1 DESTDIR=${WORLDTMP}
|
|||||||
LIB32TMP= ${OBJTREE}${.CURDIR}/lib32
|
LIB32TMP= ${OBJTREE}${.CURDIR}/lib32
|
||||||
|
|
||||||
.if empty(TARGET_CPUTYPE)
|
.if empty(TARGET_CPUTYPE)
|
||||||
LIB32CPUTYPE= k8
|
LIB32CPUFLAGS= -march=i686 -mmmx -msse -msse2
|
||||||
.else
|
.else
|
||||||
LIB32CPUTYPE= ${TARGET_CPUTYPE}
|
LIB32CPUFLAGS= -march=${TARGET_CPUTYPE}
|
||||||
.endif
|
.endif
|
||||||
LIB32FLAGS= -m32 -march=${LIB32CPUTYPE} -mfancy-math-387 -DCOMPAT_32BIT \
|
LIB32FLAGS= -m32 ${LIB32CPUFLAGS} -mfancy-math-387 -DCOMPAT_32BIT \
|
||||||
-iprefix ${LIB32TMP}/usr/ \
|
-iprefix ${LIB32TMP}/usr/ \
|
||||||
-L${LIB32TMP}/usr/lib32 \
|
-L${LIB32TMP}/usr/lib32 \
|
||||||
-B${LIB32TMP}/usr/lib32
|
-B${LIB32TMP}/usr/lib32
|
||||||
|
Loading…
Reference in New Issue
Block a user