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-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to