tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] configury (was const_wanted)


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] configury (was const_wanted)
Date: Sat, 6 Aug 2011 12:35:32 +0200
User-agent: KMail/1.13.7 (Linux/3.0.0-1-amd64; KDE/4.6.5; x86_64; ; )

Le jeudi 4 août 2011 00:53:59, grischka a écrit :
> Thomas Preud'homme wrote:
> > Actually I'd like to be able to try 2 prefixs, to reduce the dependencies
> > between glibc and tcc. This way tcc could work well both with the old
> > glibc (which install crt objects in /usr/lib) and the current glibc
> > (which install crt objects in /usr/lib/<triplet>). If not OK for you,
> > I'll have to choose between stricter dependency (only depend on recent
> > glibc) or add a small patch
> 
> Does gcc try prefixes for crt objects?
I don't know for the upstream gcc but I did a try on my debian system and it 
is:

12:31 address@hidden ~% ls /usr/lib | grep "^crt.*"
zsh: done       ls --classify --tabsize=0 --literal --color=auto --show-
control-chars   |
zsh: exit 1     grep "^crt.*"
12:31 address@hidden ~% ls /usr/lib/x86_64-linux-gnu | grep "^crt.*"
crt1.o
crti.o
crtn.o
12:31 address@hidden ~% gcc -Wall -o test test.c

(Moving crt*.o in /usr/lib)

12:31 address@hidden ~% ls /usr/lib | grep "^crt.*"
crt1.o
crti.o
crtn.o
12:31 address@hidden ~% ls /usr/lib/x86_64-linux-gnu | grep "^crt.*"
zsh: done       ls --classify --tabsize=0 --literal --color=auto --show-
control-chars   |
zsh: exit 1     grep "^crt.*"
12:31 address@hidden ~% gcc -Wall -o test test.c

(Moving crt*.o in /)

12:31 address@hidden ~% ls /usr/lib | grep "^crt.*"                 
zsh: done       ls --classify --tabsize=0 --literal --color=auto --show-
control-chars   | 
zsh: exit 1     grep "^crt.*"
12:33 address@hidden ~% ls /usr/lib/x86_64-linux-gnu | grep "^crt.*"
zsh: done       ls --classify --tabsize=0 --literal --color=auto --show-
control-chars   | 
zsh: exit 1     grep "^crt.*"
12:33 address@hidden ~% gcc -Wall -o test test.c                    
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: ld returned 1 exit status
zsh: exit 1     colorgcc -Wall -o test test.c

Attached is a patch to implement the solution you were asking for.

Best regards.

> 
> --- grischka

Thomas Preud'homme

Attachment: path_prefix_options_in_configure.patch
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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