Date: Tue, 14 Apr 2020 10:45:32 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r531665 - head/math/z3 Message-ID: <202004141045.03EAjWdn071167@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004141045.03EAjWdn071167>