build: fix build on aarch64
This commit is contained in:
parent
c36755c2db
commit
5019e0f872
1 changed files with 3 additions and 2 deletions
|
|
@ -150,7 +150,8 @@ if cxx == 'clang' or cxx == 'gcc'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if os != 'darwin' and os != 'windows'
|
# disable lto partitioning on gcc to get symver working
|
||||||
|
if os != 'darwin' and os != 'windows' and cxx == 'gcc'
|
||||||
ldflags += [
|
ldflags += [
|
||||||
'-flto-partition=none'
|
'-flto-partition=none'
|
||||||
]
|
]
|
||||||
|
|
@ -180,7 +181,7 @@ if cxx == 'clang' or cxx == 'gcc'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# by default we buid 32bit binaries
|
# by default we buid 32bit binaries
|
||||||
if not opt_64bit and cpu != 'arm'
|
if not opt_64bit and cpu != 'aarch64' and cpu != 'arm'
|
||||||
cxxflags += '-m32'
|
cxxflags += '-m32'
|
||||||
ldflags += '-m32'
|
ldflags += '-m32'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue