Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2018 20:20:58 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485615 - head/lang/php73
Message-ID:  <201811222020.wAMKKwUO098726@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste (src committer)
Date: Thu Nov 22 20:20:58 2018
New Revision: 485615
URL: https://svnweb.freebsd.org/changeset/ports/485615

Log:
  lang/php73: link with -znotext on i386
  
  This port links some non-PIC code, which fails with lld as it defaults
  to disallowing relocations against read-only segments. For i386 we can
  just add -znotext unconditionally: for GNU BFD ld it just affirms BFD's
  existing default.
  
  PR:		214864, 230207
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/lang/php73/Makefile

Modified: head/lang/php73/Makefile
==============================================================================
--- head/lang/php73/Makefile	Thu Nov 22 20:18:37 2018	(r485614)
+++ head/lang/php73/Makefile	Thu Nov 22 20:20:58 2018	(r485615)
@@ -33,6 +33,9 @@ CONFIGURE_ARGS+=--with-layout=GNU \
 USES+=		autoreconf:build
 USE_GNOME=	libxml2
 
+# PR230207 Allow relocations against read-only segments (override lld default)
+LDFLAGS_i386=	-Wl,-z,notext
+
 OPTIONS_DEFINE+=CLI CGI FPM EMBED PHPDBG DEBUG DTRACE IPV6 LINKTHR ZTS
 OPTIONS_DEFAULT=CLI CGI FPM EMBED LINKTHR DTRACE
 OPTIONS_EXCLUDE_DragonFly=	DTRACE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811222020.wAMKKwUO098726>