svn commit: r478120 - head/archivers/p7zip
Mahdi Mokhtari
mmokhi at FreeBSD.org
Sun Aug 26 11:11:03 UTC 2018
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
More information about the svn-ports-all
mailing list