Fix CONFIG_LDDIR usage
commita2c71af1ea750587950121aca3f2a67076b03e07
authorThomas Preud'homme <robotux@celest.fr>
Tue, 22 May 2012 21:44:03 +0000 (22 23:44 +0200)
committerThomas Preud'homme <robotux@celest.fr>
Tue, 22 May 2012 21:44:03 +0000 (22 23:44 +0200)
tree71bb46982837a426a6109378fd84d21f96fab641
parent2daae0dc99c05a0da9485a67d21a3e47814551a8
Fix CONFIG_LDDIR usage

This patch fix 2 bugs in CONFIG_LDDIR usage:

* CONFIG_LDDIR used for 2 purposes

  there is confusion between the directory to find libraries, crt* files
  and headers and the directory in which the program interpreter is.
  These two directories are not related. The latter is specified by the
  ABI and should not be configurable while the former depends on the
  system (single arch, biarch, multiarch). This end a longstanding issue
  with amd64 program interpreter later propagated to other architecture
  interpreters.

* If multiarch is in effect, then the library directory should be /lib.
  /lib64 denotes biarch architecture, everything which is here would be
  in /lib/x86_64-linux-gnu instead.
tcc.h