Re: ld cannot find -lc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 28 Jan 2012, Amittai Aviram wrote:

Hi! I am trying to build GCC 4.4.5 from source on an x86_64 machine running under Ubuntu.

Unpatched gcc doesn't work on recent debian/ubuntu. Maybe this should be stated somewhere prominently in the build instructions?

export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu

is usually enough to build gcc. When you use the resulting compiler, you will still need this variable, and in addition you'll need to add /usr/include/x86_64-linux-gnu to C_INCLUDE_PATH (and the c++/obj variants).

--
Marc Glisse


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux