mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
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
This commit is contained in:
parent
b0a163659a
commit
8399ead6f8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480747
@ -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
|
||||
|
@ -19,6 +19,7 @@ USE_GL?= yes
|
||||
USE_SDL?= sdl2
|
||||
USE_LDCONFIG?= yes
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
LDFLAGS_i386= -Wl,-znotext
|
||||
|
||||
OPTFLAGS= #
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user