svn commit: r263448 - stable/9/sys/modules/drm2/radeonkms

Dimitry Andric dim at FreeBSD.org
Thu Mar 20 21:12:23 UTC 2014


Author: dim
Date: Thu Mar 20 21:12:23 2014
New Revision: 263448
URL: http://svnweb.freebsd.org/changeset/base/263448

Log:
  MFC r260020:
  
  For sys/dev/drm2/radeon, only use -fms-extensions with gcc.  This flag
  is only to stop gcc complaining about anonymous unions, which clang does
  not do.  For clang 3.4 however, -fms-extensions enables the Microsoft
  __wchar_t type, which clashes with our own types.h.

Modified:
  stable/9/sys/modules/drm2/radeonkms/Makefile
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/modules/drm2/radeonkms/Makefile
==============================================================================
--- stable/9/sys/modules/drm2/radeonkms/Makefile	Thu Mar 20 20:55:57 2014	(r263447)
+++ stable/9/sys/modules/drm2/radeonkms/Makefile	Thu Mar 20 21:12:23 2014	(r263448)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+.include <bsd.own.mk>
+
 .PATH:	${.CURDIR}/../../../dev/drm2/radeon
 
 KMOD	= radeonkms
@@ -101,7 +103,6 @@ SRCS	+=								\
 	iicbus_if.h							\
 	pci_if.h
 
-CFLAGS  += -I${.CURDIR}/../../../dev/drm2/radeon			\
-	   -fms-extensions
+CFLAGS  += -I${.CURDIR}/../../../dev/drm2/radeon ${GCC_MS_EXTENSIONS}
 
 .include <bsd.kmod.mk>


More information about the svn-src-stable mailing list