[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: link-2.test
From: |
Gary V . Vaughan |
Subject: |
Re: link-2.test |
Date: |
Sat, 30 Jun 2001 02:08:24 +0100 |
On Friday 15 June 2001 6:29 am, Golubev I. N. wrote:
> Version: 1.4
>
> Should `link-2.test' still exist? That is, should `libtool' script
> filter out `.lo' files when linking a program?
>
> If yes: This test fails on `i586-pc-sco3.2v5.0.2'. Where in `libtool'
> script such a filtering should occur?
This test is especially relevant now that .lo files are infact wrapper
scripts! This is what I see on my linux box:
$ ./libtool --debug -n --mode=link gcc -o something foo.o hell.lo
libtool: enabling shell trace mode
...
+ compile_command=gcc -o @OUTPUT@ foo.o hell.lo
+ finalize_command=gcc -o @OUTPUT@ foo.o hell.lo
+ test -n ''
+ rpath=
+ hardcode_libdirs=
+ test -n ''
+ compile_rpath=
+ rpath=
+ hardcode_libdirs=
+ test -n ''
+ finalize_rpath=
+ test -n ' .libs/hell.o'
+ test yes = yes
++ echo 'Xgcc -o @OUTPUT@ foo.o hell.lo '
++ tr '\040' '\012'
++ sed -e '1s/^X//' -e 's/\.lo$/.o/'
++ tr '\015\012' '\040\040'
+ compile_command=gcc -o @OUTPUT@ foo.o hell.o
++ echo 'Xgcc -o @OUTPUT@ foo.o hell.lo '
++ tr '\040' '\012'
++ sed -e '1s/^X//' -e 's/\.lo$/.o/'
++ tr '\015\012' '\040\040'
+ finalize_command=gcc -o @OUTPUT@ foo.o hell.o
+ dlsyms=
+ test -n ''
+ test no '!=' no
+ test -n ''
++ echo 'Xgcc -o @OUTPUT@ foo.o hell.o '
++ sed -e '1s/^X//' -e 's% @address@hidden'
+ compile_command=gcc -o @OUTPUT@ foo.o hell.o
++ echo 'Xgcc -o @OUTPUT@ foo.o hell.o '
++ sed -e '1s/^X//' -e 's% @address@hidden'
+ finalize_command=gcc -o @OUTPUT@ foo.o hell.o
+ test no = no
++ echo 'Xgcc -o @OUTPUT@ foo.o hell.o '
++ sed -e '1s/^X//' -e address@hidden@%something%g
+ compile_command=gcc -o something foo.o hell.o
+ link_command=gcc -o something foo.o hell.o
+ echo 'gcc -o something foo.o hell.o '
gcc -o something foo.o hell.o
+ : eval 'gcc -o something foo.o hell.o '
+ status=0
+ test -n ''
+ exit 0
It is the lo2o sed script that performs the filtering.
Cheers,
Gary.
--
())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \' `&
`(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/
- link-2.test, Golubev I. N., 2001/06/15
- Re: link-2.test,
Gary V . Vaughan <=