svn commit: r293660 - stable/10/sys/boot/efi

Ed Maste emaste at FreeBSD.org
Mon Jan 11 15:30:20 UTC 2016


Author: emaste
Date: Mon Jan 11 15:30:19 2016
New Revision: 293660
URL: https://svnweb.freebsd.org/changeset/base/293660

Log:
  MFC r286967 by imp: use -mno-aes and -mno-avx flags only with Clang
  
  The flags -mno-aes -mno-avx only exist for clang, not [base] gcc, so
  add them only to the clang CFLAGS.

Modified:
  stable/10/sys/boot/efi/Makefile.inc
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/boot/efi/Makefile.inc
==============================================================================
--- stable/10/sys/boot/efi/Makefile.inc	Mon Jan 11 10:24:30 2016	(r293659)
+++ stable/10/sys/boot/efi/Makefile.inc	Mon Jan 11 15:30:19 2016	(r293660)
@@ -15,7 +15,8 @@ LDFLAGS+=	-nostdlib
 .if ${MACHINE_CPUARCH} == "amd64"
 CFLAGS+=	-fshort-wchar
 CFLAGS+=	-mno-red-zone
-CFLAGS+=	-mno-mmx -mno-sse -mno-aes -mno-avx
+CFLAGS+=	-mno-mmx -mno-sse
+CFLAGS.clang+=	-mno-aes -mno-avx
 CFLAGS+=	-msoft-float
 .endif
 


More information about the svn-src-all mailing list