Add multiarch dirs to linker search path
commit31ca000d72bc48060f205d94bfffc25ffe5fd18d
authorThomas Preud'homme <thomas.preudhomme@celest.fr>
Tue, 5 Jul 2011 08:47:32 +0000 (5 10:47 +0200)
committerThomas Preud'homme <thomas.preudhomme@celest.fr>
Tue, 5 Jul 2011 09:16:12 +0000 (5 11:16 +0200)
treec020a188a8db2fe34a728c27d12cc143627f5378
parentcb2138f8b098feb1b51a407343a4b99e25d5b506
Add multiarch dirs to linker search path

By default, tcc search libraries in /lib and /usr/local/lib while crt*.o
files are searched in /usr/lib and ld.so is searched in /lib.
Unfortunetely the path are hardcoded in source code. This patch allow
tcc to look in an other directory and also to look in extra directories.
It's then possible to make tcc search libraries in /lib/x86_64-linux-gnu
and /usr/local/lib/x86_64-linux-gnu while crt*.o files are searched in
/usr/lib/x86_64-linux-gnu and ld.so is searched in
/lib/x86_64-linux-gnu.
configure
libtcc.c
tcc.h