From owner-svn-ports-all@freebsd.org Sun Aug 26 11:11:03 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D8931071E43; Sun, 26 Aug 2018 11:11:03 +0000 (UTC) (envelope-from mmokhi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0CFE47B82C; Sun, 26 Aug 2018 11:11:03 +0000 (UTC) (envelope-from mmokhi@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 E240B6143; Sun, 26 Aug 2018 11:11:02 +0000 (UTC) (envelope-from mmokhi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7QBB2x8080148; Sun, 26 Aug 2018 11:11:02 GMT (envelope-from mmokhi@FreeBSD.org) Received: (from mmokhi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7QBB2tw080147; Sun, 26 Aug 2018 11:11:02 GMT (envelope-from mmokhi@FreeBSD.org) Message-Id: <201808261111.w7QBB2tw080147@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mmokhi set sender to mmokhi@FreeBSD.org using -f From: Mahdi Mokhtari Date: Sun, 26 Aug 2018 11:11:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478120 - head/archivers/p7zip X-SVN-Group: ports-head X-SVN-Commit-Author: mmokhi X-SVN-Commit-Paths: head/archivers/p7zip X-SVN-Commit-Revision: 478120 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.27 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: Sun, 26 Aug 2018 11:11:03 -0000 Author: mmokhi Date: Sun Aug 26 11:11:02 2018 New Revision: 478120 URL: https://svnweb.freebsd.org/changeset/ports/478120 Log: archivers/p7zip: Fix build with lld as /usr/bin/ld on i386 PR: 230210 Reported by: emaste Reviewed by: mat, rakuco, tobik Approved by: rakuco (maintainer) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D16813 Modified: head/archivers/p7zip/Makefile Modified: head/archivers/p7zip/Makefile ============================================================================== --- head/archivers/p7zip/Makefile Sun Aug 26 11:09:38 2018 (r478119) +++ head/archivers/p7zip/Makefile Sun Aug 26 11:11:02 2018 (r478120) @@ -3,7 +3,7 @@ PORTNAME= p7zip PORTVERSION= 16.02 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= archivers MASTER_SITES= SF DISTNAME= ${PORTNAME}_${DISTVERSION}_src_all @@ -25,8 +25,14 @@ CFLAGS_armv6= -fPIC CFLAGS_armv7= -fPIC CFLAGS_aarch64= -fPIC CFLAGS_amd64= -fPIC +CFLAGS_i386= -fPIC CFLAGS_powerpc= -fPIC CFLAGS_sparc64= -fPIC + +# Fix the build for i386 when WITH_LLD_IS_LD is set +# https://bugs.freebsd.org/230210 +LDFLAGS+= ${LDFLAGS_${ARCH}} +LDFLAGS_i386= -Wl,-z,notext OPTIONS_DEFINE= DOCS