Bug 879286

Summary: libtool rearranges parameters
Product: [Fedora] Fedora Reporter: Jan Horak <jhorak>
Component: libtoolAssignee: Ondrej Dubaj <odubaj>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: praiskup, rhbugs
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-05 08:28:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Horak 2012-11-22 14:34:09 UTC
Description of problem:
Libtool rearranges parameters, for example it puts -Wl,--whole-archive before all libraries (-l<lib>).

See: http://pastebin.com/hGsa7taE - look for '-Wl,--whole-archive' string. First line contains how libtool was called, second what libtool actually executed.

Is there any workaround for this?

Comment 2 Jan Horak 2012-11-26 16:46:13 UTC
Possible workaround is to add -Xlinker parameter to LDFLAGS, like:
yelp_LDFLAGS = $(AM_LDFLAGS) -Xlinker '--whole-archive -lmozglue -lmemory -Wl,--no-whole-archive'
Howerver before 'configure' script is launched LDFLAGS must be reset.

Comment 4 Pavel Raiskup 2016-07-25 12:08:12 UTC
It is too late for RHEL6.

It is actually upstream issue.  Reported e.g. here:
https://lists.gnu.org/archive/html/libtool/2015-09/msg00001.html

Let's s it open against Fedora Rawhide.

Comment 5 Fedora Admin user for bugzilla script actions 2021-07-01 15:31:42 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 6 Ondrej Dubaj 2021-10-01 08:16:23 UTC
Hi, is this still an issue? Seems like it does not bother anybody, or it is already resolved/workarounded ? Seems like upstream didn't respond for a long time...

Comment 7 Ondrej Dubaj 2021-10-05 08:28:51 UTC
This tracker probably does not have enough high priority to be investigated, as it is untouched for years already and does not seem to disturb any user. If you have any specific reason, why why should consider fixing this, please feel free to reopen this bug. Thank you.