|
|
发表于 2004-12-16 23:17:00
|
显示全部楼层
你可以看看/usr/share/doc/glibc-2.3.3/下的说明呀。
- Configuring and compiling GNU Libc
- ==================================
-
- GNU libc can be compiled in the source directory, but we strongly
- advise building it in a separate build directory. For example, if you
- have unpacked the glibc sources in `/src/gnu/glibc-2.3', create a
- directory `/src/gnu/glibc-build' to put the object files in. This
- allows removing the whole build directory in case an error occurs,
- which is the safest way to get a fresh start and should always be done.
-
- From your object directory, run the shell script `configure' located
- at the top level of the source tree. In the scenario above, you'd type
-
- $ ../glibc-2.3/configure ARGS...
-
- Please note that even if you're building in a separate build
- directory, the compilation needs to modify a few files in the source
- directory, especially some files in the manual subdirectory.
-
- `configure' takes many options, but you can get away with knowing only
- two: `--prefix' and `--enable-add-ons'. The `--prefix' option tells
- `configure' where you want glibc installed. This defaults to
- `/usr/local'. The `--enable-add-ons' option tells `configure' to use
- all the add-on bundles it finds in the source directory. Since
- important functionality is provided in add-ons, you should always
- specify this option.
-
- It may also be useful to set the CC and CFLAGS variables in the
- environment when running `configure'. CC selects the C compiler that
- will be used, and CFLAGS sets optimization options for the compiler.
复制代码 |
|