Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
dep-resolver: let the users overwrite project's definitions
Browse files Browse the repository at this point in the history
With this change now users may overwrite definitions values, i.e for
distros building systems we may want to intruct the LIBDIR based on
target platform i.e /usr/lib64 for x86-64. For that the user can for
example export LIBDIR=/usr/lib64/ and the the $(build_libdir) will be
properly be adjusted.

Signed-off-by: Leandro Dorileo <[email protected]>
  • Loading branch information
Leandro Dorileo committed Aug 31, 2015
1 parent 3b5e576 commit 9b05da1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/scripts/dependency-resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,14 @@ def handle_definitions(args, conf, context):
context.debug("## ------------------- ##\n\n")

variables = {"PREFIX": args.prefix}

# environment variables get priority, so set it beforehand
for k,v in os.environ.items():
found = definitions.get(k)
if not found:
continue
definitions[k] = v

vars_expand(definitions, variables, len(definitions))

header = ""
Expand Down

0 comments on commit 9b05da1

Please sign in to comment.