From owner-svn-ports-all@freebsd.org Tue Apr 14 10:45:32 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B63D32BCC51; Tue, 14 Apr 2020 10:45:32 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 491hwD4PzJz41L4; Tue, 14 Apr 2020 10:45:32 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 92A493E2F; Tue, 14 Apr 2020 10:45:32 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03EAjWXR071168; Tue, 14 Apr 2020 10:45:32 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03EAjWdn071167; Tue, 14 Apr 2020 10:45:32 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202004141045.03EAjWdn071167@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Tue, 14 Apr 2020 10:45:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r531665 - head/math/z3 X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/math/z3 X-SVN-Commit-Revision: 531665 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2020 10:45:32 -0000 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