This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to build stand-alone (statically linked) gcc?
- From: David Kang <dkang at isi dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 31 Jul 2015 12:17:48 -0700 (PDT)
- Subject: How to build stand-alone (statically linked) gcc?
- Authentication-results: sourceware.org; auth=none
Hi,
I am building gcc as a cross compiler.
I'm building it on Ubuntu 14.04, but I want to use the gcc binaries on older CentOS machines.
So, far gcc complains that it cannot find proper glibc on the older CentOS machines.
gcc: /lib64/libc.so.6: version `GLIBC_2.8' not found (required by /tmp/gcc)
gcc: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/gcc)
gcc: /lib64/libc.so.6: version `GLIBC_2.11' not found (required by /tmp/gcc)
Is there a way to build gcc itself such that gcc doesn't need dynamic library for maximum portability?
I'll appreciate any help.
David
--
----------------------
Dr. Dong-In "David" Kang
Computer Scientist
USC/ISI