From owner-freebsd-multimedia@freebsd.org Mon Sep 17 14:42:51 2018 Return-Path: Delivered-To: freebsd-multimedia@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 03C5B109F152 for ; Mon, 17 Sep 2018 14:42:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7453B7E71B for ; Mon, 17 Sep 2018 14:42:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 39012109F14C; Mon, 17 Sep 2018 14:42:50 +0000 (UTC) Delivered-To: multimedia@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 F332F109F147 for ; Mon, 17 Sep 2018 14:42:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B9367E715 for ; Mon, 17 Sep 2018 14:42:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id ACD6D1194A for ; Mon, 17 Sep 2018 14:42:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w8HEgm3J099245 for ; Mon, 17 Sep 2018 14:42:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8HEgmC9099244 for multimedia@FreeBSD.org; Mon, 17 Sep 2018 14:42:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: maintainer-feedback requested: [Bug 231431] multimedia/libfame: fails to link on i386 with lld as the system linker Date: Mon, 17 Sep 2018 14:42:48 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2018 14:42:51 -0000 Bugzilla Automation has asked freebsd-multimedia mai= ling list for maintainer-feedback: Bug 231431: multimedia/libfame: fails to link on i386 with lld as the system linker https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231431 --- Description --- --- libfame.la --- /bin/sh ../libtool --mode=3Dlink cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DHAS_BSWAP -Wall -fexpensive-optimizations -funroll-l= oops -ffast-math -fomit-frame-pointer -DHAS_MMX -Wl,-znotext -fstack-protector -fuse-ld=3Dbfd -o libfame.la -rpath /usr/local/lib -release 0.9 -version-i= nfo 1:0:0 fame.lo cpuflags.lo fame_profile_mpeg.lo fame_profile_mpeg1.lo fame_profile_mpeg4_simple.lo fame_profile_mpeg4_shape.lo fame_profile_stat= s.lo fame_encoder_mpeg.lo fame_decoder_mpeg.lo fame_syntax_mpeg1.lo=20 fame_syntax_mpeg4.lo fame_shape.lo fame_rate_simple.lo fame_rate_1param.lo fame_rate.lo fame_monitor.lo fame_motion.lo fame_motion_none.lo fame_motion_fourstep.lo fame_motion_pmvfast.lo fame_malloc.lo -lm rm -fr .libs/libfame.la .libs/libfame.* .libs/libfame-0.9.* cc -shared fame.lo cpuflags.lo fame_profile_mpeg.lo fame_profile_mpeg1.lo fame_profile_mpeg4_simple.lo fame_profile_mpeg4_shape.lo fame_profile_stats= .lo fame_encoder_mpeg.lo fame_decoder_mpeg.lo fame_syntax_mpeg1.lo fame_syntax_mpeg4.lo fame_shape.lo fame_rate_simple.lo fame_rate_1param.lo fame_rate.lo fame_monitor.lo fame_motion.lo fame_motion_none.lo fame_motion_fourstep.lo fame_motion_pmvfast.lo fame_malloc.lo -lm -lc=20 -Wl,-soname -Wl,libfame-0.9.so.1 -o .libs/libfame-0.9.so.1.0.0 /usr/bin/ld: error: can't create dynamic relocation R_386_32 against symbol: _mmx_1 in readonly segment; recompile object files with -fPIC >>> defined in fame.lo >>> referenced by fame_encoder_mpeg.c >>> fame_encoder_mpeg.lo:(mpeg_encode_intra_mb) Note this occurs with this change to the Makefile: diff --git a/multimedia/libfame/Makefile b/multimedia/libfame/Makefile index c704e0b3e081..25fc1d105cfe 100644 --- a/multimedia/libfame/Makefile +++ b/multimedia/libfame/Makefile @@ -15,6 +15,9 @@ INSTALL_TARGET=3D install-strip USES=3D libtool USE_LDCONFIG=3D yes +LDFLAGS+=3D ${LDFLAGS_${ARCH}} +LDFLAGS_i386=3D -Wl,-znotext + OPTIONS_DEFINE=3D MMX OPTIONS_DEFAULT=3DMMX It appears libtool in libfame does not pass the LDFLAGS option through to t= he link invocation.