Date: Sat, 7 Oct 2017 19:10:45 +0000 (UTC) From: Raphael Kubo da Costa <rakuco@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r451477 - head/archivers/p7zip Message-ID: <201710071910.v97JAjJF033841@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rakuco Date: Sat Oct 7 19:10:45 2017 New Revision: 451477 URL: https://svnweb.freebsd.org/changeset/ports/451477 Log: Pass -fPIC on armv7 as well. This fixes the following build error: /usr/bin/ld: 7zEncode.o(.text+0x2d04): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `_ZTIi@@CXXABI_1.3' /usr/bin/ld: final link failed: Nonrepresentable section on output c++: error: linker command failed with exit code 1 (use -v to see invocation) PR: 222852 Submitted by: guyyur@gmail.com Modified: head/archivers/p7zip/Makefile Modified: head/archivers/p7zip/Makefile ============================================================================== --- head/archivers/p7zip/Makefile Sat Oct 7 19:01:09 2017 (r451476) +++ head/archivers/p7zip/Makefile Sat Oct 7 19:10:45 2017 (r451477) @@ -20,6 +20,7 @@ MAKEFILE= makefile MAKE_ARGS= OPTFLAGS="${CXXFLAGS}" WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION} +CFLAGS_armv7= -fPIC CFLAGS_aarch64= -fPIC CFLAGS_amd64= -fPIC CFLAGS_powerpc= -fPIC
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710071910.v97JAjJF033841>