How to specify include directory for configure script

后端 未结 4 1793
隐瞒了意图╮
隐瞒了意图╮ 2021-02-04 03:34

I have a linux system at my workplace with pretty old packages and no root access. I\'m compiling packages that I need from source with --prefix=[somewhere in homedir]

4条回答
  •  别那么骄傲
    2021-02-04 04:14

    Usually you can pass additional compiler flags inside CXXFLAGS. For gcc you can specify more include directories with -I/some/dir, e.g.

    $ ./configure CXXFLAGS="-I/some/dir/"
    

    where /some/dir/ contains your headers.

提交回复
热议问题