Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2018 16:12:12 +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: r480747 - in head: audio/zinf emulators/mupen64plus-core games/q2pro games/quakeforge lang/clover multimedia/gstreamer-ffmpeg multimedia/libass
Message-ID:  <201809261612.w8QGCCll063027@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste (src committer)
Date: Wed Sep 26 16:12:12 2018
New Revision: 480747
URL: https://svnweb.freebsd.org/changeset/ports/480747

Log:
  Add -znotext to LDFLAGS on i386, for lld
  
  These ports link 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
  Approved by:	portmgr (lld blanket)
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/audio/zinf/Makefile
  head/emulators/mupen64plus-core/Makefile
  head/games/q2pro/Makefile
  head/games/quakeforge/Makefile
  head/lang/clover/Makefile
  head/multimedia/gstreamer-ffmpeg/Makefile
  head/multimedia/libass/Makefile

Modified: head/audio/zinf/Makefile
==============================================================================
--- head/audio/zinf/Makefile	Wed Sep 26 16:07:26 2018	(r480746)
+++ head/audio/zinf/Makefile	Wed Sep 26 16:12:12 2018	(r480747)
@@ -23,6 +23,7 @@ CONFIGURE_ARGS=	--enable-ipv6 \
 CPPFLAGS+=	-I${LOCALBASE}/include
 CPPFLAGS+=	-D_WANT_SEMUN
 LDFLAGS+=	-lpthread -L${LOCALBASE}/lib
+LDFLAGS_i386=	-Wl,-znotext
 
 OPTIONS_DEFINE=	ESOUND VORBIS
 OPTIONS_DEFAULT=VORBIS

Modified: head/emulators/mupen64plus-core/Makefile
==============================================================================
--- head/emulators/mupen64plus-core/Makefile	Wed Sep 26 16:07:26 2018	(r480746)
+++ head/emulators/mupen64plus-core/Makefile	Wed Sep 26 16:12:12 2018	(r480747)
@@ -19,6 +19,7 @@ USE_GL?=	yes
 USE_SDL?=	sdl2
 USE_LDCONFIG?=	yes
 ONLY_FOR_ARCHS=	i386 amd64
+LDFLAGS_i386=	-Wl,-znotext
 
 OPTFLAGS=	#
 

Modified: head/games/q2pro/Makefile
==============================================================================
--- head/games/q2pro/Makefile	Wed Sep 26 16:07:26 2018	(r480746)
+++ head/games/q2pro/Makefile	Wed Sep 26 16:12:12 2018	(r480747)
@@ -22,6 +22,7 @@ SVN_REV=	142
 MAKE_ENV=	LIBDIR="${LIBDIR}"
 PLIST_SUB=	LIBDIR="${LIBDIR:S|${PREFIX}/||}"
 LIBDIR=		${PREFIX}/lib/${PORTNAME}
+LDFLAGS_i386=	-Wl,-znotext
 
 OPTIONS_DEFINE=		CLIENT DEDICATED GAME GL SOFT UI
 OPTIONS_DEFINE_i386=	ASM

Modified: head/games/quakeforge/Makefile
==============================================================================
--- head/games/quakeforge/Makefile	Wed Sep 26 16:07:26 2018	(r480746)
+++ head/games/quakeforge/Makefile	Wed Sep 26 16:12:12 2018	(r480747)
@@ -34,6 +34,7 @@ CONFIGURE_ARGS=	--disable-alsa \
 USE_CSTD=	gnu89
 INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
+LDFLAGS_i386=	-Wl,-znotext
 
 SUB_FILES=	pkg-message
 

Modified: head/lang/clover/Makefile
==============================================================================
--- head/lang/clover/Makefile	Wed Sep 26 16:07:26 2018	(r480746)
+++ head/lang/clover/Makefile	Wed Sep 26 16:12:12 2018	(r480747)
@@ -22,6 +22,7 @@ CONFIGURE_ARGS+=	--enable-opencl --enable-opencl-icd -
 			--disable-egl --disable-gbm --disable-gles2 --disable-glx \
 			--disable-va --disable-vdpau --disable-xvmc \
 			--with-gallium-drivers=r600,radeonsi	# only supported GPUs
+LDFLAGS_i386=		-Wl,-znotext
 
 #MESA_BUILD_WRKSRC=	src/util src/compiler src/mesa src/gallium
 MESA_INSTALL_WRKSRC=	src/gallium/targets/opencl src/gallium/targets/pipe-loader

Modified: head/multimedia/gstreamer-ffmpeg/Makefile
==============================================================================
--- head/multimedia/gstreamer-ffmpeg/Makefile	Wed Sep 26 16:07:26 2018	(r480746)
+++ head/multimedia/gstreamer-ffmpeg/Makefile	Wed Sep 26 16:12:12 2018	(r480747)
@@ -27,6 +27,7 @@ USE_LDCONFIG=	yes
 USE_GSTREAMER=	yes
 GNU_CONFIGURE=	yes
 PLIST_SUB=	VERSION="${PORTVERSION:R}"
+LDFLAGS_i386=	-Wl,-znotext
 
 OPTIONS_DEFINE=	FFMPEG
 FFMPEG_DESC?=	Use system ffmpeg instead of internal libav

Modified: head/multimedia/libass/Makefile
==============================================================================
--- head/multimedia/libass/Makefile	Wed Sep 26 16:07:26 2018	(r480746)
+++ head/multimedia/libass/Makefile	Wed Sep 26 16:12:12 2018	(r480747)
@@ -20,6 +20,7 @@ USES=		autoreconf iconv libtool pathfix pkgconfig
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 INSTALL_TARGET=	install-strip
+LDFLAGS_i386=	-Wl,-znotext
 
 OPTIONS_DEFINE=	HARFBUZZ
 OPTIONS_DEFAULT=HARFBUZZ



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