3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/rmlint/fix-scons.patch
2015-01-28 17:35:12 +01:00

23 lines
623 B
Diff

diff --git b/SConstruct a/SConstruct
old mode 100644
new mode 100755
index a7fca2e..561007e
--- b/SConstruct
+++ a/SConstruct
@@ -404,11 +404,10 @@ options = dict(
SHLINKCOMSTR=link_shared_library_message,
LINKCOMSTR=link_program_message,
PREFIX=GetOption('prefix'),
- ENV={
- 'PATH': os.environ['PATH'],
- 'TERM': os.environ['TERM'],
- 'HOME': os.environ['HOME']
- }
+ ENV = dict([ (key, os.environ[key])
+ for key in os.environ
+ if key in ['PATH', 'TERM', 'HOME', 'PKG_CONFIG_PATH']
+ ])
)
if ARGUMENTS.get('VERBOSE') == "1":