Commit fef2da3c authored by zivmc's avatar zivmc Committed by John Wu

Fix bug in compiling elf_cleaner with g++

Signed-off-by: 's avatarzivmc <zivmc@users.noreply.github.com>
parent 9820296e
...@@ -172,7 +172,7 @@ def clean_elf(): ...@@ -172,7 +172,7 @@ def clean_elf():
else: else:
elf_cleaner = os.path.join('native', 'out', 'elf-cleaner') elf_cleaner = os.path.join('native', 'out', 'elf-cleaner')
if not os.path.exists(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]) '-o', elf_cleaner])
args = [elf_cleaner] args = [elf_cleaner]
args.extend(os.path.join('native', 'out', arch, 'magisk') for arch in archs + arch64) args.extend(os.path.join('native', 'out', arch, 'magisk') for arch in archs + arch64)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment