Ubuntu 12.04 32位
gcc4.6.3
查看当前所用glibc版本
ldd --version
ldd (Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
下载glibc2.15源码 http://ftp.gnu.org/gnu/glibc
解压后目录下执行 ./configure --prefix=/usr/local/glib --enable-static --disable-shared CFLAGS="-static"
编译出错
configure: error: you must configure in a separate build directory
跳出新建目录 glibc-2.15-build 在该目录下以绝对路径执行
出错
configure: error:
*** LD_LIBRARY_PATH shouldn't contain the current directory when
*** building glibc. Please change the environment variable