[cfe-dev] -B support in clang
Shantonu Sen
ssen at apple.com
Wed Oct 21 08:34:04 PDT 2009
I have to ask: what are you really trying to do?
GCC's build system (which I assume where the libssp is being taken from) uses -B internally to override default search paths for the *uninstalled* xgcc. If you're trying to build libssp with a preinstalled compiler (either gcc or clang), -B is not appropriate, because the compiler will find whatever it needs in /usr/lib. In fact, overriding the paths with something pointing to a partial gcc build might do more harm than good.
Shantonu
Sent from my MacBook
On Oct 21, 2009, at 5:54 AM, steve naroff wrote:
> Hi Roman,
>
> I don't believe it is currently supported. I found a FIXME below which relates to -B:
>
> Compilation *Driver::BuildCompilation(int argc, const char **argv) {
> llvm::PrettyStackTraceString CrashInfo("Compilation construction");
>
> // FIXME: Handle environment options which effect driver behavior, somewhere
> // (client?). GCC_EXEC_PREFIX, COMPILER_PATH, LIBRARY_PATH, LPATH,
> // CC_PRINT_OPTIONS.
>
> snaroff
>
> On Oct 21, 2009, at 8:41 AM, Roman Divacky wrote:
>
>> hi
>>
>> I am trying this command:
>>
>> CC='clang -m32 -march=native -mfancy-math-387 -DCOMPAT_32BIT -iprefix
>> /home/rdivacky/tmp//data/home/rdivacky/clangbsd/lib32/usr/
>> -L/home/rdivacky/tmp//data/home/rdivacky/clangbsd/lib32/usr/lib32
>> -B/home/rdivacky/tmp//data/home/rdivacky/clangbsd/lib32/usr/lib32' mkdep -f .depend -a -DHAVE_CONFIG_H
>> -I/data/home/rdivacky/clangbsd/gnu/lib/libssp/libssp_nonshared/..
>> -I/data/home/rdivacky/clangbsd/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp
>> -I/data/home/rdivacky/clangbsd/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/include -DPIC
>> /data/home/rdivacky/clangbsd/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c
>>
>> but it fails with:
>>
>> clang: error: unsupported option '-B/home/rdivacky/tmp//data/home/rdivacky/clangbsd/lib32/usr/lib32'
>>
>>
>> so.. is -B supported? I tried to search for the option definitions but
>> I failed badly :(
>>
>> thank you, roman
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091021/21c144f6/attachment.html>
More information about the cfe-dev
mailing list