svn commit: r485615 - head/lang/php73
Ed Maste
emaste at FreeBSD.org
Thu Nov 22 20:20:59 UTC 2018
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
More information about the svn-ports-head
mailing list