From owner-svn-ports-all@freebsd.org Tue Sep 18 14:53:05 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0CF1D10A0155; Tue, 18 Sep 2018 14:53:05 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B536173BF5; Tue, 18 Sep 2018 14:53:04 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B01E92176A; Tue, 18 Sep 2018 14:53:04 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8IEr41G071290; Tue, 18 Sep 2018 14:53:04 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8IEr4x4071289; Tue, 18 Sep 2018 14:53:04 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201809181453.w8IEr4x4071289@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Tue, 18 Sep 2018 14:53:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r480028 - head/multimedia/libdv X-SVN-Group: ports-head X-SVN-Commit-Author: emaste X-SVN-Commit-Paths: head/multimedia/libdv X-SVN-Commit-Revision: 480028 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2018 14:53:05 -0000 Author: emaste (src committer) Date: Tue Sep 18 14:53:04 2018 New Revision: 480028 URL: https://svnweb.freebsd.org/changeset/ports/480028 Log: 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 Modified: head/multimedia/libdv/Makefile Modified: head/multimedia/libdv/Makefile ============================================================================== --- head/multimedia/libdv/Makefile Tue Sep 18 14:50:27 2018 (r480027) +++ head/multimedia/libdv/Makefile Tue Sep 18 14:53:04 2018 (r480028) @@ -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