Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2007 16:27:02 -0400 (EDT)
From:      "Mikhail T." <mi@aldan.algebra.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/114082: default CFLAGS have a blank at the end
Message-ID:  <200706272027.l5RKR2Zl098079@aldan.algebra.com>
Resent-Message-ID: <200706272030.l5RKU3lf089260@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         114082
>Category:       bin
>Synopsis:       default CFLAGS have a blank at the end
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 27 20:30:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail T.
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
Virtual Estates, Inc.
>Environment:
System: FreeBSD aldan.algebra.com 6.2-STABLE FreeBSD 6.2-STABLE #1: Thu Jun 7 22:11:33 EDT 2007 mi@aldan.algebra.com:/meow/obj/var/src/sys/SILVER-SMP amd64

>Description:
	When the CFLAGS are not altered by /etc/make.conf (such as
	by setting the CPUTYPE) or by local Makefile(s), the default
	value contains a blank space at the end: "-O2 -fno-strict-aliasing
	-pipe ".

	Not sure, whether this is a problem with the make code or with
	the /usr/share/mk/*, but I'm afraid, it is the former.

	It is known to be reproducible in 7.x as well as 6.2.

>How-To-Repeat:

	Run make with the following simple two-line makefile:

	echo:
		# >${CFLAGS}<

	Note the extra space before the closing ``<'':

	# >-O2 -fno-strict-aliasing -pipe <

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706272027.l5RKR2Zl098079>