[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #32498] export within $(eval) within a $(call) broken?
From: |
anonymous |
Subject: |
[bug #32498] export within $(eval) within a $(call) broken? |
Date: |
Tue, 15 Feb 2011 22:05:04 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.9.2.13) Gecko/20101212 Namoroka/3.6.13 |
URL:
<http://savannah.gnu.org/bugs/?32498>
Summary: export within $(eval) within a $(call) broken?
Project: make
Submitted by: None
Submitted on: Tue 15 Feb 2011 10:05:04 PM UTC
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.82
Operating System: Any
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
Hi,
After a long bug hunting in a set of complex Makefiles, I came up with that
simple test that let me think there is a problem in gmake itself:
-- cut here --
define test1
$(eval export AA)
endef
define test2
$(eval export AB=)
endef
define test3
$(eval export AC=x)
endef
$(call test1)
$(call test2)
$(call test3)
$(eval export AD)
all:
env | grep ^A
-- cut here --
The output from gmake is :
env | grep ^A
AB=
AC=x
AD=
Note that 'AA' variable is not exported.
I can reproduce this with gmake-3.81 or 3.82, on different platforms (Linux,
NetBSD).
Am I missing something, or is there really a problem here?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32498>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #32498] export within $(eval) within a $(call) broken?,
anonymous <=