mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
Buildsystem fixes for FreeBSD. (#6029)
* Enable thread-local storage on FreeBSD. * Pass -soname linker flag on FreeBSD.
This commit is contained in:
parent
7497856ded
commit
6f7be77e2b
|
@ -2599,6 +2599,7 @@ def mk_config():
|
|||
OS_DEFINES = '-D_FREEBSD_'
|
||||
SO_EXT = '.so'
|
||||
SLIBFLAGS = '-shared'
|
||||
SLIBEXTRAFLAGS = '%s -Wl,-soname,libz3.so' % SLIBEXTRAFLAGS
|
||||
elif sysname == 'NetBSD':
|
||||
CXXFLAGS = '%s -D_NETBSD_' % CXXFLAGS
|
||||
OS_DEFINES = '-D_NETBSD_'
|
||||
|
@ -2632,7 +2633,7 @@ def mk_config():
|
|||
if is64():
|
||||
if not sysname.startswith('CYGWIN') and not sysname.startswith('MSYS') and not sysname.startswith('MINGW'):
|
||||
CXXFLAGS = '%s -fPIC' % CXXFLAGS
|
||||
if sysname == 'Linux':
|
||||
if sysname == 'Linux' or sysname == 'FreeBSD':
|
||||
CPPFLAGS = '%s -D_USE_THREAD_LOCAL' % CPPFLAGS
|
||||
elif not LINUX_X64:
|
||||
CXXFLAGS = '%s -m32' % CXXFLAGS
|
||||
|
|
Loading…
Reference in a new issue