summaryrefslogtreecommitdiff
path: root/src/vpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpath.c')
-rw-r--r--src/vpath.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vpath.c b/src/vpath.c
index 873a9c94..25c41e30 100644
--- a/src/vpath.c
+++ b/src/vpath.c
@@ -71,7 +71,8 @@ build_vpath_lists (void)
/* If there is a VPATH variable with a nonnull expanded value, construct the
general VPATH list from it. */
- p = expand_string ("$(strip $(VPATH))");
+ p = expand_variable ("VPATH", 5);
+ NEXT_TOKEN (p);
if (*p != '\0')
{
@@ -95,7 +96,8 @@ build_vpath_lists (void)
/* If there is a GPATH variable with a nonnull expanded value, construct the
GPATH list from it. */
- p = expand_string ("$(strip $(GPATH))");
+ p = expand_variable ("GPATH", 5);
+ NEXT_TOKEN (p);
if (*p != '\0')
{