bin/114082: default CFLAGS have a blank at the end

Mikhail T. mi at
Wed Jun 27 20:30:03 UTC 2007

>Number:         114082
>Category:       bin
>Synopsis:       default CFLAGS have a blank at the end
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 27 20:30:02 GMT 2007
>Originator:     Mikhail T.
>Release:        FreeBSD 6.2-STABLE amd64
Virtual Estates, Inc.
System: FreeBSD 6.2-STABLE FreeBSD 6.2-STABLE #1: Thu Jun 7 22:11:33 EDT 2007 mi at amd64

	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.


	Run make with the following simple two-line makefile:

		# >${CFLAGS}<

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

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


More information about the freebsd-bugs mailing list