[LLVMdev] Is the option --enable-shared discontinued in 2.7?
Jeffrey Yasskin
jyasskin at google.com
Thu Apr 29 18:31:46 PDT 2010
On Wed, Apr 28, 2010 at 10:48 AM, Yuri <yuri at tsoft.com> wrote:
> Jeffrey Yasskin wrote:
>>
>> We currently use two different techniques to get whole libraries
>> included into the .so. On Linux (gnu ld and gold), we pass
>> --whole-archive, while on OSX we pass -all_load. Which ld does FreeBSD
>> use? If you can rearrange tools/llvm-shlib/Makefile until it works for
>> you and send us a patch, we can probably get it working for llvm-2.8.
>>
>
>
> ld on FreeBSD is from binutils. It takes --whole-archive option.
Would you try the patch at
http://codereview.appspot.com/download/issue968046_1.diff? It should
make the BSDs fall into the same path as Linux, and since you use gnu
ld, that should work for you.
> But command
> line needs to be changed: actual archive files should be supplied, not just
> -lXXX. I believe that will fix the problem.
This isn't needed on Linux or MacOS.
Thanks,
Jeffrey
More information about the llvm-dev
mailing list