Passing a gcc flag through makefile

前端 未结 3 764
清歌不尽
清歌不尽 2020-12-05 19:44

I am trying to build a pass using llvm and I have finished building llvm and its associated components. However, when I run make after following all the steps to build a pas

3条回答
  •  半阙折子戏
    2020-12-05 20:04

    Another option is to pass -fPIC directly to make in the following way:

    make CFLAGS='-fPIC' CXXFLAGS='-fPIC'
    

提交回复
热议问题