Skip to content

Commit

Permalink
Apply android fix to SConstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
piiertho committed Oct 19, 2021
1 parent 5c28d46 commit bb7ac80
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ else:

# Workaround for MinGW. See:
# http://www.scons.org/wiki/LongCmdLinesOnWin32
if (os.name=="nt"):
if os.name == "nt":
import subprocess

def mySubProcess(cmdline,env):
Expand Down Expand Up @@ -387,8 +387,12 @@ elif env['platform'] == 'android':
env['CC'] = toolchain + "/bin/clang"
env['CXX'] = toolchain + "/bin/clang++"
env['AR'] = toolchain + "/bin/" + arch_info['tool_path'] + "-ar"
env["AS"] = toolchain + "/bin/" + arch_info['tool_path'] + "-as"
env["LD"] = toolchain + "/bin/" + arch_info['tool_path'] + "-ld"
env["STRIP"] = toolchain + "/bin/" + arch_info['tool_path'] + "-strip"
env["RANLIB"] = toolchain + "/bin/" + arch_info['tool_path'] + "-ranlib"

env.Append(CCFLAGS=['--target=' + arch_info['target'] + env['android_api_level'], '-march=' + arch_info['march'], '-fPIC'])#, '-fPIE', '-fno-addrsig', '-Oz'])
env.Append(CCFLAGS=['--target=' + arch_info['target'] + env['android_api_level'], '-march=' + arch_info['march'], '-fPIC'])
env.Append(CCFLAGS=arch_info['ccflags'])

if env['target'] == 'debug':
Expand Down

0 comments on commit bb7ac80

Please sign in to comment.