diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-06-17 12:43:01 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-06-17 12:43:01 +0200 |
commit | 2e051028154117aeb66faa3aceb8480a273bbf59 (patch) | |
tree | 1b6025b7a5f4b1aeaf19882cf6d5d4de55aaf025 /dev-util/scons/files | |
parent | games-rpg/penumbra-collection: Remove last-rited pkg (diff) | |
download | gentoo-2e051028154117aeb66faa3aceb8480a273bbf59.tar.gz gentoo-2e051028154117aeb66faa3aceb8480a273bbf59.tar.bz2 gentoo-2e051028154117aeb66faa3aceb8480a273bbf59.zip |
dev-util/scons: Remove 3.0.1-r2 with the broken patch
Diffstat (limited to 'dev-util/scons/files')
-rw-r--r-- | dev-util/scons/files/scons-3.0.1-respect-cc-etc.patch | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/dev-util/scons/files/scons-3.0.1-respect-cc-etc.patch b/dev-util/scons/files/scons-3.0.1-respect-cc-etc.patch deleted file mode 100644 index 345f39ca548e..000000000000 --- a/dev-util/scons/files/scons-3.0.1-respect-cc-etc.patch +++ /dev/null @@ -1,85 +0,0 @@ -From 7dca875d157f477e05a652f4f1dd1b6903d9dc0a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Thu, 10 May 2018 08:01:08 +0200 -Subject: [PATCH] posix: Also force common toolchain vars for Gentoo - ---- - src/engine/SCons/Platform/posix.py | 17 +++++++++++++++++ - src/engine/SCons/Tool/cc.py | 3 ++- - src/engine/SCons/Tool/cxx.py | 3 ++- - src/engine/SCons/Tool/link.py | 3 ++- - 4 files changed, 23 insertions(+), 3 deletions(-) - -diff --git a/src/engine/SCons/Platform/posix.py b/src/engine/SCons/Platform/posix.py -index af34650c..ee7f96d5 100644 ---- a/src/engine/SCons/Platform/posix.py -+++ b/src/engine/SCons/Platform/posix.py -@@ -93,6 +93,23 @@ def generate(env): - if 'ENV' in env: - new_env.update(env['ENV']) - env['ENV'] = new_env -+ -+ # Furthermore, force common compiler/linker variables as well -+ envvar_mapping = { -+ 'AR': 'AR', -+ 'AS': 'AS', -+ 'AS': 'ASFLAGS', -+ 'CC': 'CC', -+ 'CXX': 'CXX', -+ 'CFLAGS': 'CFLAGS', -+ 'CXXFLAGS': 'CXXFLAGS', -+ 'CPPFLAGS': 'CPPFLAGS', -+ 'LDFLAGS': 'LINKFLAGS', -+ } -+ -+ for envvar, toolvar in envvar_mapping.items(): -+ if toolvar not in env and envvar in env['ENV']: -+ env[toolvar] = env['ENV'][envvar] - else: - if 'ENV' not in env: - env['ENV'] = {} -diff --git a/src/engine/SCons/Tool/cc.py b/src/engine/SCons/Tool/cc.py -index 590ec5fd..5f9229a0 100644 ---- a/src/engine/SCons/Tool/cc.py -+++ b/src/engine/SCons/Tool/cc.py -@@ -80,7 +80,8 @@ def generate(env): - - if 'CC' not in env: - env['CC'] = env.Detect(compilers) or compilers[0] -- env['CFLAGS'] = SCons.Util.CLVar('') -+ if 'CFLAGS' not in env: -+ env['CFLAGS'] = SCons.Util.CLVar('') - env['CCCOM'] = '$CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES' - env['SHCC'] = '$CC' - env['SHCFLAGS'] = SCons.Util.CLVar('$CFLAGS') -diff --git a/src/engine/SCons/Tool/cxx.py b/src/engine/SCons/Tool/cxx.py -index 430851c8..ca5ab563 100644 ---- a/src/engine/SCons/Tool/cxx.py -+++ b/src/engine/SCons/Tool/cxx.py -@@ -74,7 +74,8 @@ def generate(env): - - if 'CXX' not in env: - env['CXX'] = env.Detect(compilers) or compilers[0] -- env['CXXFLAGS'] = SCons.Util.CLVar('') -+ if 'CXXFLAGS' not in env: -+ env['CXXFLAGS'] = SCons.Util.CLVar('') - env['CXXCOM'] = '$CXX -o $TARGET -c $CXXFLAGS $CCFLAGS $_CCCOMCOM $SOURCES' - env['SHCXX'] = '$CXX' - env['SHCXXFLAGS'] = SCons.Util.CLVar('$CXXFLAGS') -diff --git a/src/engine/SCons/Tool/link.py b/src/engine/SCons/Tool/link.py -index 07e92507..614d1779 100644 ---- a/src/engine/SCons/Tool/link.py -+++ b/src/engine/SCons/Tool/link.py -@@ -292,7 +292,8 @@ def generate(env): - env.Append(SHLIBEMITTER = [shlib_emitter]) - env['SMARTLINK'] = smart_link - env['LINK'] = "$SMARTLINK" -- env['LINKFLAGS'] = SCons.Util.CLVar('') -+ if 'LINKFLAGS' not in env: -+ env['LINKFLAGS'] = SCons.Util.CLVar('') - # __RPATH is only set to something ($_RPATH typically) on platforms that support it. - env['LINKCOM'] = '$LINK -o $TARGET $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS' - env['LIBDIRPREFIX']='-L' --- -2.17.0 - |