- 论坛徽章:
- 2
|
回复 4# harry_he
> 那么--with-sysroot一定使用prefix指定的目录的某个子目录么?
不一定。你可以用将库和头文件放在任意地方,然后使用--with-sysroot来指定。
> 还有--with-build-sysroot是在使用非本次编译产生的库时用的么?
用于当构建目标库时,来指定GCC的系统根目录。原文如下:
--with-build-sysroot
--with-build-sysroot=dir
Tells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in which you are installing GCC and your target libraries.
This option affects the system root for the compiler used to build target libraries (which runs on the build system); it does not affect the compiler which is used to build GCC itself. |
|