[Midnightbsd-cvs] src [9703] trunk/sys/boot/i386/boot2/Makefile: fix arguments for clang compilation with 3.4

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Dec 17 12:12:13 EST 2017


Revision: 9703
          http://svnweb.midnightbsd.org/src/?rev=9703
Author:   laffer1
Date:     2017-12-17 12:12:12 -0500 (Sun, 17 Dec 2017)
Log Message:
-----------
fix arguments for clang compilation with 3.4

Modified Paths:
--------------
    trunk/sys/boot/i386/boot2/Makefile

Modified: trunk/sys/boot/i386/boot2/Makefile
===================================================================
--- trunk/sys/boot/i386/boot2/Makefile	2017-12-17 04:15:14 UTC (rev 9702)
+++ trunk/sys/boot/i386/boot2/Makefile	2017-12-17 17:12:12 UTC (rev 9703)
@@ -1,4 +1,4 @@
-# $MidnightBSD: src/sys/boot/i386/boot2/Makefile,v 1.7 2011/12/18 19:09:49 laffer1 Exp $
+# $MidnightBSD$
 # $FreeBSD: src/sys/boot/i386/boot2/Makefile,v 1.60 2007/05/19 05:07:47 kan Exp $
 
 .include <bsd.own.mk>
@@ -24,10 +24,7 @@
 #BOOT2_UFS?=	UFS1_ONLY
 
 CFLAGS=	-Os \
-	-fno-guess-branch-probability \
 	-fomit-frame-pointer \
-	-fno-unit-at-a-time \
-	-mno-align-long-strings \
 	-mrtd \
 	-mregparm=3 \
 	-DUSE_XREAD \
@@ -41,9 +38,16 @@
 	-Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
 	-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
 	-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
-	-Winline --param max-inline-insns-single=100 \
+	-Winline \
 	${CLANG_OPT_SMALL}
 
+CFLAGS.gcc+=	-fno-guess-branch-probability \
+		-fno-unit-at-a-time \
+		--param max-inline-insns-single=100
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} <= 40201
+CFLAGS.gcc+=	-mno-align-long-strings
+.endif
+
 LDFLAGS=-static -N --gc-sections
 
 # Pick up ../Makefile.inc early.



More information about the Midnightbsd-cvs mailing list