[cfe-commits] [PATCH] clang: Add 32/64bit library search paths for Linux
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Wed Aug 5 05:33:19 PDT 2009
Linux distributions have various library search paths which vary across
distributions. /lib and /usr/lib/ are either 32 bit or 64 bit, depending
on whether you run something from the Debian family or openSUSE/RedHat
family.
/lib32 and /usr/lib32 exist in some distributions (usually those which
have /lib for 64 bit code, e.g. Debian on x86_64).
/lib64 and /usr/lib64 exist in other distributions (usually those which
have /lib for 32 bit code, e.g. openSUSE on x86_64).
Add all those paths to the default clang library search path.
This fixes Bug 4140 for x86-64 non-Debian distributions and for 32 bit
compilation on x86-64 Debian.
This is my first patch, so I appreciate feedback about what I can improve.
The patch is against cfe trunk.
Regards,
Carl-Daniel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: clang_lib_searchpath_3264bit.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090805/f5372824/attachment.ksh>
More information about the cfe-commits
mailing list