depot/third_party/nixpkgs/pkgs/games/gambatte/fix-scons-paths.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

15 lines
552 B
Diff

diff --git a/libgambatte/SConstruct b/libgambatte/SConstruct
index e882514..87e1eaa 100644
--- a/libgambatte/SConstruct
+++ b/libgambatte/SConstruct
@@ -5,7 +5,9 @@ vars = Variables()
vars.Add('CC')
vars.Add('CXX')
-env = Environment(CPPPATH = ['src', 'include', '../common'],
+import os
+env = Environment(ENV = os.environ,
+ CPPPATH = ['src', 'include', '../common'],
CFLAGS = global_cflags + global_defines,
CXXFLAGS = global_cxxflags + global_defines,
variables = vars)