From 60279d141a108042caecd4ee9dbbf9e89b2c6d99 Mon Sep 17 00:00:00 2001 From: emaste Date: Wed, 26 Sep 2018 16:12:12 +0000 Subject: 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 --- audio/zinf/Makefile | 1 + emulators/mupen64plus-core/Makefile | 1 + games/q2pro/Makefile | 1 + games/quakeforge/Makefile | 1 + lang/clover/Makefile | 1 + multimedia/gstreamer-ffmpeg/Makefile | 1 + multimedia/libass/Makefile | 1 + 7 files changed, 7 insertions(+) diff --git a/audio/zinf/Makefile b/audio/zinf/Makefile index a53ccdacfe5b..5dad8c582556 100644 --- a/audio/zinf/Makefile +++ b/audio/zinf/Makefile @@ -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 diff --git a/emulators/mupen64plus-core/Makefile b/emulators/mupen64plus-core/Makefile index 58ae1a4b2a95..56d699c74231 100644 --- a/emulators/mupen64plus-core/Makefile +++ b/emulators/mupen64plus-core/Makefile @@ -19,6 +19,7 @@ USE_GL?= yes USE_SDL?= sdl2 USE_LDCONFIG?= yes ONLY_FOR_ARCHS= i386 amd64 +LDFLAGS_i386= -Wl,-znotext OPTFLAGS= # diff --git a/games/q2pro/Makefile b/games/q2pro/Makefile index 68bc15ad0ecc..a71089e383f1 100644 --- a/games/q2pro/Makefile +++ b/games/q2pro/Makefile @@ -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 diff --git a/games/quakeforge/Makefile b/games/quakeforge/Makefile index a1eae860a5d7..4eecacb0ec78 100644 --- a/games/quakeforge/Makefile +++ b/games/quakeforge/Makefile @@ -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 diff --git a/lang/clover/Makefile b/lang/clover/Makefile index f8adadacccbc..bdb119381e5e 100644 --- a/lang/clover/Makefile +++ b/lang/clover/Makefile @@ -22,6 +22,7 @@ CONFIGURE_ARGS+= --enable-opencl --enable-opencl-icd --disable-dri \ --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 diff --git a/multimedia/gstreamer-ffmpeg/Makefile b/multimedia/gstreamer-ffmpeg/Makefile index 50c1d343db92..ac3082ded560 100644 --- a/multimedia/gstreamer-ffmpeg/Makefile +++ b/multimedia/gstreamer-ffmpeg/Makefile @@ -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 diff --git a/multimedia/libass/Makefile b/multimedia/libass/Makefile index 4f46875ca325..7fca5fa8fa43 100644 --- a/multimedia/libass/Makefile +++ b/multimedia/libass/Makefile @@ -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 -- cgit