Date: Mon, 15 Dec 1997 00:43:38 GMT From: Mark Valentine <mark@thuvia.demon.co.uk> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5297: make incompatibility with System V style variable substitions Message-ID: <199712150043.AAA29620@thuvia.demon.co.uk> Resent-Message-ID: <199712150050.QAA28738@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 5297 >Category: bin >Synopsis: make incompatibility with System V style variable substitions >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 14 16:50:01 PST 1997 >Last-Modified: >Originator: Mark Valentine >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: make(1) has an incompatibility with other implementations (such as GNU make and Sun's make) when performing System V style variable substitions involving empty strings. >How-To-Repeat: Using the following makefile and "make all", FOO = FOOBAR = $(FOO:=bar) all: @echo FOOBAR = $(FOOBAR) GNU make and Sun's make generate the output: FOOBAR = whereas FreeBSD's make produces: FOOBAR = bar If FOO is non-empty, FreeBSD does the right thing, e.g. with "make all FOO='foo1 foo2'": FOOBAR = foo1bar foo2bar >Fix: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712150043.AAA29620>