diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-09-18 14:53:04 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-09-18 14:53:04 +0000 |
commit | bef974981181fcba1b7ac4d7bf36523a9a579863 (patch) | |
tree | ed7e9f150c8edbb5de6b3e9cb3bbf536de870f47 /multimedia/libdv/Makefile | |
parent | 782ee638984330190352fe5aaa67e758f1bbd757 (diff) |
multimedia/libdv: add -znotext to LDFLAGS on i386, for lld
Example error:
/usr/bin/ld: error: can't create dynamic relocation R_386_32 against
symbol: dv_vlc_class_index_mask in readonly segment; recompile
object files with -fPIC
>>> defined in .libs/vlc.o
>>> referenced by .libs/vlc_x86.o:(.text+0xF)
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
Approved by: bapt
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17220
Notes
Notes:
svn path=/head/; revision=480028
Diffstat (limited to 'multimedia/libdv/Makefile')
-rw-r--r-- | multimedia/libdv/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/multimedia/libdv/Makefile b/multimedia/libdv/Makefile index 100ef0a02da1..0b475a7ccba1 100644 --- a/multimedia/libdv/Makefile +++ b/multimedia/libdv/Makefile @@ -21,6 +21,7 @@ LDFLAGS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip USES= jpeg libtool pathfix pkgconfig USE_LDCONFIG= yes +LDFLAGS_i386= -Wl,-znotext DOCS= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \ README.dvconnect README.encoder TODO |