3
0
Fork 0
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:
Gleb Popov 2022-05-12 20:54:57 +03:00 committed by GitHub
parent 7497856ded
commit 6f7be77e2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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