Changeset 662 for trunk/kBuild


Ignore:
Timestamp:
Dec 5, 2006, 5:23:03 PM (19 years ago)
Author:
bird
Message:

Global properties should not be taken from the environment (LIBPATH from Visual C++ shell => trouble).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r660 r662  
    548548        LIBS LIBPATH
    549549
     550## PROPS_ALL
     551# List of all the properties.
     552PROPS_ALL = $(PROPS_SINGLE) $(PROPS_DEFERRED) $(PROPS_ACCUMULATE_L) $(PROPS_ACCUMULATE_R)
     553
     554
     555#
     556# Here is a special 'hack' to prevent innocent environment variables being
     557# picked up and treated as properties. (The most annoying example of why
     558# this is necessary is the Visual C++ commandline with it's LIBPATH.)
     559#
     560# Define KBUILD_DONT_KILL_ENV_PROPS in the env. or on the commandline to
     561# disable this 'hack'.
     562#
     563ifndef KBUILD_DONT_KILL_ENV_PROPS
     564
     565define def_nuke_environment_prop
     566ifeq ($(origin $(prop)),environment)
     567$(prop) =
     568endif
     569endef
     570$(foreach prop,$(PROPS_ALL),$(eval $(value def_nuke_environment_prop)))
     571
     572endif
     573
    550574
    551575#
Note: See TracChangeset for help on using the changeset viewer.