Ubuntu下 gcc编译 glibc-2.15静态库文件

本文档详细记录了在Ubuntu 12.04 32位系统上,使用gcc4.6.3编译glibc-2.15静态库的全过程,包括遇到的各种错误及其解决方法,如configure错误、缺失依赖、编译错误等。最终成功完成编译和安装。
摘要由CSDN通过智能技术生成

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

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值