Author: avg Date: Sun Nov 18 12:30:04 2012 New Revision: 243220 URL: http://svnweb.freebsd.org/changeset/base/243220
Log: MFC r241785: boot: use -march=i386 for both i386 and amd64 builds Modified: stable/8/sys/boot/ficl/Makefile stable/8/sys/boot/i386/Makefile.inc stable/8/sys/boot/zfs/Makefile Directory Properties: stable/8/sys/ (props changed) stable/8/sys/boot/ (props changed) Modified: stable/8/sys/boot/ficl/Makefile ============================================================================== --- stable/8/sys/boot/ficl/Makefile Sun Nov 18 12:28:29 2012 (r243219) +++ stable/8/sys/boot/ficl/Makefile Sun Nov 18 12:30:04 2012 (r243220) @@ -8,6 +8,7 @@ SRCS= ${BASE_SRCS} sysdep.c softcore.c CLEANFILES= softcore.c testmain testmain.o CFLAGS+= -ffreestanding .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" +CFLAGS+= -march=i386 CFLAGS+= -mpreferred-stack-boundary=2 CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 .endif @@ -42,7 +43,7 @@ SOFTWORDS= softcore.fr jhlocal.fr marker #SOFTWORDS+= oo.fr classes.fr .if ${MACHINE_ARCH} == "amd64" -CFLAGS+= -m32 -march=i386 -I. +CFLAGS+= -m32 -I. .endif CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH:S/amd64/i386/} \ Modified: stable/8/sys/boot/i386/Makefile.inc ============================================================================== --- stable/8/sys/boot/i386/Makefile.inc Sun Nov 18 12:28:29 2012 (r243219) +++ stable/8/sys/boot/i386/Makefile.inc Sun Nov 18 12:30:04 2012 (r243220) @@ -5,12 +5,12 @@ BINDIR?= /boot LOADER_ADDRESS?=0x200000 -CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \ +CFLAGS+= -march=i386 -ffreestanding -mpreferred-stack-boundary=2 \ -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 LDFLAGS+= -nostdlib .if ${MACHINE_ARCH} == "amd64" -CFLAGS+= -m32 -march=i386 +CFLAGS+= -m32 LDFLAGS+= -m elf_i386_fbsd AFLAGS+= --32 .endif Modified: stable/8/sys/boot/zfs/Makefile ============================================================================== --- stable/8/sys/boot/zfs/Makefile Sun Nov 18 12:28:29 2012 (r243219) +++ stable/8/sys/boot/zfs/Makefile Sun Nov 18 12:30:04 2012 (r243220) @@ -12,6 +12,7 @@ CFLAGS+= -I${.CURDIR}/../../cddl/boot/zf CFLAGS+= -ffreestanding .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" +CFLAGS+= -march=i386 CFLAGS+= -mpreferred-stack-boundary=2 CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 .endif @@ -22,7 +23,7 @@ CFLAGS+= -mno-sse3 CFLAGS+= -msoft-float .endif .if ${MACHINE_ARCH} == "amd64" -CFLAGS+= -m32 -march=i386 +CFLAGS+= -m32 .endif CFLAGS+= -Wformat -Wall _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"