From owner-freebsd-bugs Sun Dec 14 16:50:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA28749 for bugs-outgoing; Sun, 14 Dec 1997 16:50:08 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA28738; Sun, 14 Dec 1997 16:50:02 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 14 Dec 1997 16:50:02 -0800 (PST) Resent-Message-Id: <199712150050.QAA28738@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, mark@thuvia.demon.co.uk Received: from thuvia.demon.co.uk (dejah.spider.com [194.217.109.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA28075 for ; Sun, 14 Dec 1997 16:43:29 -0800 (PST) (envelope-from mark@thuvia.demon.co.uk) Received: (from mark@localhost) by thuvia.demon.co.uk (8.8.8/8.8.7) id AAA29620; Mon, 15 Dec 1997 00:43:38 GMT Message-Id: <199712150043.AAA29620@thuvia.demon.co.uk> Date: Mon, 15 Dec 1997 00:43:38 GMT From: Mark Valentine Reply-To: mark@thuvia.demon.co.uk To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5297: make incompatibility with System V style variable substitions Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: