diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-04-14 10:45:32 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-04-14 10:45:32 +0000 |
commit | 147f242d90f786d3ce53c7b1ad3eff50bf4a1ad9 (patch) | |
tree | 2c2a0cbc3f1f49f670c2c798bc4279ff6524c4c6 /math/z3 | |
parent | emulators/nemu: Update to 2.4.0 (diff) |
math/z3: fix build on powerpc with clang
Add -fPIC to CXXFLAGS:
ld: error: relocation R_PPC_ADDR16_HA cannot be used against local symbol; recompile with -fPIC
>>> defined in api/dll/gparams_register_modules.o
>>> referenced by gparams_register_modules.cpp
>>> api/dll/gparams_register_modules.o:(gparams_register_modules())
Adding -Wl,-znotext to LDFLAGS doesn't help.
Diffstat (limited to 'math/z3')
-rw-r--r-- | math/z3/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/math/z3/Makefile b/math/z3/Makefile index 8609fb132efd..e0f717835307 100644 --- a/math/z3/Makefile +++ b/math/z3/Makefile @@ -34,6 +34,7 @@ GMP_CONFIGURE_ON= --gmp GMP_USES= localbase:ldflags GMP_LIB_DEPENDS= libgmp.so:math/gmp +CXXFLAGS_powerpc= -fPIC LDFLAGS_i386= -Wl,-znotext BUILD_WRKSRC= ${WRKSRC}/build INSTALL_WRKSRC= ${WRKSRC}/build |