Fix bug in compiling elf_cleaner with g++

Signed-off-by: zivmc <zivmc@users.noreply.github.com>
This commit is contained in:
zivmc 2020-04-01 10:58:26 +08:00 committed by John Wu
parent 9820296e92
commit fef2da3c0b

View File

@ -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)