summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/make.1
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-08-03 18:56:31 +0000
committerharti <harti@FreeBSD.org>2004-08-03 18:56:31 +0000
commitfbcc82e0b7d364f7f6be5779662e55171ad40c32 (patch)
treec5ef8ec3263a3b61b02de03c0b5591c884c7ca46 /usr.bin/make/make.1
parent35780dc21adda12f4e93177415556e6698e017e4 (diff)
downloadFreeBSD-src-fbcc82e0b7d364f7f6be5779662e55171ad40c32.zip
FreeBSD-src-fbcc82e0b7d364f7f6be5779662e55171ad40c32.tar.gz
Put variable assignments from the command line into the MAKEFLAGS
variable as required by POSIX. This causes such variables to be pushed into all sub-makes called by the make (except when the MAKEFLAGS variable is explicitely changed in the sub-make's environment). This makes them also mostly un-overrideable in sub-makes except on the sub-make's command line. Therefor specifying 'make CC=icc' will cause icc to be used as C compiler in all sub-makes no matter what the Makefiles itself try to do to the CC variable. This patch also corrects the handling of the MFLAGS variable. MFLAGS contains all the command line flags but not the command line variable assignments. The evaluation of the .MFLAGS or .MAKEFLAGS target now changes both MFLAGS and MAKEFLAGS (they used to change MAKEFLAGS only). Makefiles can use MFLAGS for their own purposes given that they do not except MFLAGS to be undefined at the beginning and that they don't evaluate .MFLAGS or .MAKEFLAGS. MFLAGS should be removed for POSIX compliance, but it is unfortunately heavily used by the X makefiles. This has been extensively tested by port builds (thanks to portmgr), new worlds and kernels. PR: standards/57295 (1st part above) Submitted by: James E. Flemer <jflemer@alum.rpi.edu> Approved by: portmgr Obtained from: NetBSD (1st part above) MFC after: 4 weeks
Diffstat (limited to 'usr.bin/make/make.1')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud