mirror of
https://github.com/Z3Prover/z3
synced 2025-06-07 06:33:23 +00:00
Add -fpic to armv7/armv8 build
This commit is contained in:
parent
6ce903b1d6
commit
1eec0799ca
1 changed files with 4 additions and 2 deletions
|
@ -2441,7 +2441,7 @@ def mk_config():
|
||||||
CXXFLAGS = '%s -O3 -D _EXTERNAL_RELEASE -fomit-frame-pointer' % CXXFLAGS
|
CXXFLAGS = '%s -O3 -D _EXTERNAL_RELEASE -fomit-frame-pointer' % CXXFLAGS
|
||||||
if is_CXX_clangpp():
|
if is_CXX_clangpp():
|
||||||
CXXFLAGS = '%s -Wno-unknown-pragmas -Wno-overloaded-virtual -Wno-unused-value' % CXXFLAGS
|
CXXFLAGS = '%s -Wno-unknown-pragmas -Wno-overloaded-virtual -Wno-unused-value' % CXXFLAGS
|
||||||
sysname = os.uname()[0]
|
sysname, _, _, _, machine = os.uname()
|
||||||
if sysname == 'Darwin':
|
if sysname == 'Darwin':
|
||||||
SO_EXT = '.dylib'
|
SO_EXT = '.dylib'
|
||||||
SLIBFLAGS = '-dynamiclib'
|
SLIBFLAGS = '-dynamiclib'
|
||||||
|
@ -2492,7 +2492,9 @@ def mk_config():
|
||||||
# and to make it create an import library.
|
# and to make it create an import library.
|
||||||
SLIBEXTRAFLAGS = '%s -static-libgcc -static-libstdc++ -Wl,--out-implib,libz3.dll.a' % SLIBEXTRAFLAGS
|
SLIBEXTRAFLAGS = '%s -static-libgcc -static-libstdc++ -Wl,--out-implib,libz3.dll.a' % SLIBEXTRAFLAGS
|
||||||
LDFLAGS = '%s -static-libgcc -static-libstdc++' % LDFLAGS
|
LDFLAGS = '%s -static-libgcc -static-libstdc++' % LDFLAGS
|
||||||
|
if sysname == 'Linux' and machine.startswith('armv7') or machine.startswith('armv8'):
|
||||||
|
CXXFLAGS = '%s -fpic' % CXXFLAGS
|
||||||
|
|
||||||
config.write('PREFIX=%s\n' % PREFIX)
|
config.write('PREFIX=%s\n' % PREFIX)
|
||||||
config.write('CC=%s\n' % CC)
|
config.write('CC=%s\n' % CC)
|
||||||
config.write('CXX=%s\n' % CXX)
|
config.write('CXX=%s\n' % CXX)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue