Fix bug in compiling elf_cleaner with g++
Signed-off-by: zivmc <zivmc@users.noreply.github.com>
This commit is contained in:
parent
9820296e92
commit
fef2da3c0b
2
build.py
2
build.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user