svn commit: r531665 - head/math/z3

Piotr Kubaj pkubaj at FreeBSD.org
Tue Apr 14 10:45:32 UTC 2020


Author: pkubaj
Date: Tue Apr 14 10:45:32 2020
New Revision: 531665
URL: https://svnweb.freebsd.org/changeset/ports/531665

Log:
  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.

Modified:
  head/math/z3/Makefile

Modified: head/math/z3/Makefile
==============================================================================
--- head/math/z3/Makefile	Tue Apr 14 10:26:53 2020	(r531664)
+++ head/math/z3/Makefile	Tue Apr 14 10:45:32 2020	(r531665)
@@ -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


More information about the svn-ports-all mailing list