From fef2da3c0ba3d07b00739157ac26d8a92e28d592 Mon Sep 17 00:00:00 2001 From: zivmc Date: Wed, 1 Apr 2020 10:58:26 +0800 Subject: [PATCH] Fix bug in compiling elf_cleaner with g++ Signed-off-by: zivmc --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index f47162250..70fb301ed 100755 --- a/build.py +++ b/build.py @@ -172,7 +172,7 @@ def clean_elf(): else: elf_cleaner = os.path.join('native', 'out', 'elf-cleaner') if not os.path.exists(elf_cleaner): - execv(['g++', 'tools/termux-elf-cleaner/termux-elf-cleaner.cpp', + execv(['g++', '-std=c++11', 'tools/termux-elf-cleaner/termux-elf-cleaner.cpp', '-o', elf_cleaner]) args = [elf_cleaner] args.extend(os.path.join('native', 'out', arch, 'magisk') for arch in archs + arch64)