bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool generates incorrect option for Solaris ld


From: Vincent Lefevre
Subject: Re: libtool generates incorrect option for Solaris ld
Date: Mon, 2 Jul 2007 22:27:05 +0200
User-agent: Mutt/1.5.16-vl-r17763 (2007-06-14)

On 2007-07-02 20:50:18 +0200, Ralf Wildenhues wrote:
> AFAICS there should be a software update to bring this up to
> | ld: Software Generation Utilities - Solaris Link Editors: 5.7-1.282

This is a very old machine (mainly used for testing software) that is
no longer updated.

> which has no -64 but is nice enough to ignore this argument.
> 
> I suppose Libtool's  needs to cater to these older linker versions.
> What does your system output with this:
>   echo 'int main () { return 0; }' > conftest.c
>   cc -xarch=v9 -c conftest.c
>   /usr/bin/file conftest.o
>   ld -64 -o conftest conftest.o; echo $?
>   ld -64 -r -o conftest2.o conftest.o; echo $?

bar% echo 'int main () { return 0; }' > conftest.c
bar% cc -xarch=v9 -c conftest.c
bar% /usr/bin/file conftest.o
conftest.o:     ELF 64-bit MSB relocatable SPARCV9 Version 1
bar% ld -64 -o conftest conftest.o; echo $?
ld: illegal option -- 6
ld: illegal option -- 4
/usr/ccs/bin/sparcv9/ld: illegal option -- 6
/usr/ccs/bin/sparcv9/ld: illegal option -- 4
/usr/ccs/bin/sparcv9/ld: illegal option -- 6
/usr/ccs/bin/sparcv9/ld: illegal option -- 4
usage: ld [-abd:e:f:h:il:mo:rstu:z:B:D:F:GI:L:M:N:Q:R:S:VY:] file(s)
        [-a]            create an absolute file
[...]
        [-Y P,dirlist]  use `dirlist' as a default path when searching for
                        libraries
1
bar% ld -64 -r -o conftest2.o conftest.o; echo $?
ld: illegal option -- 6
ld: illegal option -- 4
/usr/ccs/bin/sparcv9/ld: illegal option -- 6
/usr/ccs/bin/sparcv9/ld: illegal option -- 4
/usr/ccs/bin/sparcv9/ld: illegal option -- 6
/usr/ccs/bin/sparcv9/ld: illegal option -- 4
usage: ld [-abd:e:f:h:il:mo:rstu:z:B:D:F:GI:L:M:N:Q:R:S:VY:] file(s)
        [-a]            create an absolute file
[...]
        [-Y P,dirlist]  use `dirlist' as a default path when searching for
                        libraries
1
bar% 

-- 
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]