void-packages/srcpkgs/qt5-webengine/patches/cross-insanity.patch

21 lines
879 B
Diff

--- a/src/3rdparty/chromium/build/toolchain/gcc_link_wrapper.py 2021-02-23 16:36:59.000000000 +0100
+++ b/src/3rdparty/chromium/build/toolchain/gcc_link_wrapper.py 2021-03-09 22:21:08.066565706 +0100
@@ -54,10 +54,16 @@
help='Linking command')
args = parser.parse_args()
+ command = []
+ if(args.command[0] == "/usr/lib/ccache/bin/g++"):
+ command = [e for e in args.command if not e.startswith("-L")]
+ else:
+ command = args.command
+
# Work-around for gold being slow-by-default. http://crbug.com/632230
fast_env = dict(os.environ)
fast_env['LC_ALL'] = 'C'
- result = wrapper_utils.RunLinkWithOptionalMapFile(args.command, env=fast_env,
+ result = wrapper_utils.RunLinkWithOptionalMapFile(command, env=fast_env,
map_file=args.map_file)
if result != 0:
return result