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. But command line needs to be changed: actual archive files should be supplied, not just -lXXX. I believe that will fix the problem. Yuri
Jeffrey Yasskin
2010-Apr-30 01:31 UTC
[LLVMdev] Is the option --enable-shared discontinued in 2.7?
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
Jeffrey Yasskin
2010-May-04 00:07 UTC
[LLVMdev] Is the option --enable-shared discontinued in 2.7?
On Thu, Apr 29, 2010 at 6:31 PM, Jeffrey Yasskin <jyasskin at google.com> wrote:> 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.Ping?