Compile i586 without sse instructions.
We need a to compile binaries without sse instructions (https://github.com/kiwix/kiwix-build/issues/94#issuecomment-376814014)
This commit is contained in:
parent
ee11333249
commit
72f3691ba6
|
@ -176,8 +176,8 @@ class TargetInfo:
|
||||||
}
|
}
|
||||||
elif self.build == 'i586':
|
elif self.build == 'i586':
|
||||||
return {
|
return {
|
||||||
'extra_libs': ['-m32', '-march=i586'],
|
'extra_libs': ['-m32', '-march=i586', '-mno-sse'],
|
||||||
'extra_cflags': ['-m32', '-march=i586'],
|
'extra_cflags': ['-m32', '-march=i586', '-mno-sse'],
|
||||||
'host_machine': {
|
'host_machine': {
|
||||||
'system': 'linux',
|
'system': 'linux',
|
||||||
'lsystem': 'linux',
|
'lsystem': 'linux',
|
||||||
|
|
|
@ -30,9 +30,9 @@ class linux_i586_toolchain(Toolchain):
|
||||||
return '--host={}'.format(self.arch_full)
|
return '--host={}'.format(self.arch_full)
|
||||||
|
|
||||||
def set_env(self, env):
|
def set_env(self, env):
|
||||||
env['CFLAGS'] = "-m32 -march=i586 "+env['CFLAGS']
|
env['CFLAGS'] = "-m32 -march=i586 -mno-sse "+env['CFLAGS']
|
||||||
env['CXXFLAGS'] = "-m32 -march=i586 "+env['CXXFLAGS']
|
env['CXXFLAGS'] = "-m32 -march=i586 -mno-sse "+env['CXXFLAGS']
|
||||||
env['LDFLAGS'] = "-m32 -march=i586 "+env['LDFLAGS']
|
env['LDFLAGS'] = "-m32 -march=i586 -mno-sse "+env['LDFLAGS']
|
||||||
|
|
||||||
def get_bin_dir(self):
|
def get_bin_dir(self):
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Reference in New Issue