weixin_39822993 2020-11-30 11:25
浏览 0

Makefile link order

Originally reported on Google Code with ID 92


Using a configure/make workflow on "gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)"
makes the build fail with a linker error.

I tracked it down to clangEdit and clangLex being linked in the wrong order.

Attached patch switches places on them, and now everything builds fine.

Reported by kim.grasman on 2013-01-09 21:14:38

该提问来源于开源项目:include-what-you-use/include-what-you-use

  • 写回答

5条回答 默认 最新

  • weixin_39822993 2020-11-30 11:25
    关注
    
    What exactly error have you encountered?
    
    I am not sure how USEDLIBS option is passed to linker, but I can invoke
    g++ [...] -lclangLex [...] -lclangEdit
    when use prebuilt binaries. And IWYU is built successfully.
    

    Reported by vsapsai on 2013-01-13 21:13:08

    评论

报告相同问题?