How to compile my own glibc C standard library from source and use it?

后端 未结 2 954
被撕碎了的回忆
被撕碎了的回忆 2020-11-30 05:08

I am trying to compile my own glibc. I have a directory glibc, which contain the glibc source code I downloaded from the internet. From that direct

2条回答
  •  我在风中等你
    2020-11-30 05:45

    The Makefile is going to exist in your build-glibc directory if the configure script finishes successfully.

    If everything seems to have gone smoothly during configure and still no Makefile, then you probably missed an idiosyncrasy:

    While doing a configure for glibc, it is expected that you normally provide an alternative --prefix, because installing to the default location (/usr/local) can potentially cripple the system. If you don't provide one, then you need to switch on --disable-sanity-checks.

    If this is not the case either, look for a config.log file, and read its contents.

提交回复
热议问题