Bug 97608 - libtool.m4 bug: `"$LD" -v`
Summary: libtool.m4 bug: `"$LD" -v`
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: libtool
Version: 1.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-06-18 10:56 UTC by Tim Waugh
Modified: 2015-01-08 00:05 UTC (History)
3 users (show)

Fixed In Version: 1.5-4
Clone Of:
Environment:
Last Closed: 2005-12-20 07:30:20 UTC
Embargoed:


Attachments (Terms of Use)
libtool-patch (448 bytes, patch)
2003-06-19 08:19 UTC, Tim Waugh
no flags Details | Diff

Description Tim Waugh 2003-06-18 10:56:46 UTC
Description of problem:
/usr/share/aclocal/libtool.m4 contains code for checking if ld is GNU ld; but it
fails if gcc provides '/usr/bin/ld -m ...' for $LD.  The quotes should be
removed, like:

`$LD -v`

Version-Release number of selected component (if applicable):
libtool-1.5-3

This causes build failures on x86_64.

Comment 1 Jens Petersen 2003-06-19 01:46:50 UTC
Could you attache a patch to illustrate please?
I'm not clear on what should be changed.

Also some build output would be nice for reference.

Comment 2 Tim Waugh 2003-06-19 08:19:57 UTC
Created attachment 92480 [details]
libtool-patch

Here is the change I'm talking about.  This comes from omni-libtool.patch in
cvs.devel.  Get build output by building Omni-0.9.0-2 from CVS on x86_64 -- or
just see for yourself that 'gcc -print-prog-name=ld' on x86_64 gives output
containing spaces.

Comment 3 Jens Petersen 2003-06-19 08:57:21 UTC
Ok, thanks.

However for me "gcc -print-prog-name=ld" just outputs "ld" on x86_64
when I just tried now.

Comment 4 Tim Waugh 2003-06-19 09:11:15 UTC
Oh it was g++; but it doesn't seem to be doing it with the new GCC package.  But
on Tuesday I was getting things like this (pasted from an IRC log I had):

appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... no


Comment 6 Jakub Jelinek 2003-06-19 11:40:47 UTC
GCC never provided any arguments to ld in gcc -print-prog-name=ld, so it must be
something else.

Comment 7 Jens Petersen 2003-07-08 13:27:37 UTC
Ok, should be fixed in libtool-1.5-4.


Note You need to log in before you can comment on or make changes to this bug.