Date: Sat, 28 Dec 2013 22:44:02 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r260020 - head/sys/modules/drm2/radeonkms Message-ID: <201312282244.rBSMi2D9095131@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Sat Dec 28 22:44:02 2013 New Revision: 260020 URL: http://svnweb.freebsd.org/changeset/base/260020 Log: 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. MFC after: 3 days Modified: head/sys/modules/drm2/radeonkms/Makefile Modified: head/sys/modules/drm2/radeonkms/Makefile ============================================================================== --- head/sys/modules/drm2/radeonkms/Makefile Sat Dec 28 22:35:16 2013 (r260019) +++ head/sys/modules/drm2/radeonkms/Makefile Sat Dec 28 22:44:02 2013 (r260020) @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + .PATH: ${.CURDIR}/../../../dev/drm2/radeon KMOD = radeonkms @@ -103,7 +105,9 @@ SRCS += \ iicbus_if.h \ pci_if.h -CFLAGS += -I${.CURDIR}/../../../dev/drm2/radeon \ - -fms-extensions +CFLAGS += -I${.CURDIR}/../../../dev/drm2/radeon +.if ${COMPILER_TYPE} == "gcc" +CFLAGS += -fms-extensions +.endif .include <bsd.kmod.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312282244.rBSMi2D9095131>