depot/third_party/nixpkgs/pkgs/tools/graphics/lprof/keep-environment.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

16 lines
623 B
Diff

--- lprof-1.11.4.1.org/SConstruct 2006-06-06 02:11:32.000000000 +0100
+++ lprof-1.11.4.1/SConstruct 2017-08-29 12:56:13.425654683 +0100
@@ -22,12 +22,7 @@
# opts.Add(BoolOption('qt-mt-lib', 'Flag used to set QT library to either qt-mt or qt. Value of 1 = qt-mt, 0 = qt.', 'yes'))
# setup base environemnt
-env = Environment(
- ENV = {
- 'PATH' : os.environ[ 'PATH' ],
- 'HOME' : os.environ[ 'HOME' ], # required for distcc
- 'LDFLAGS' : ''
- }, options = opts)
+env = Environment(ENV = os.environ, options = opts)
opts.Update(env)
opts.Save('lprof.conf', env) # Save, so user doesn't have to