On 8 October 2011 21:24, Swati wrote: > Now during make, in stage1, it fails at i686-pc-linux-gnu/libgomp. > It gives error : C compiler cannot create executables > > When I check config.log, it is unable to find reference to the function > dummy. > > Could you please tell me the right way of adding a library in gcc? > Also where all do I have to modify, so that all the functions in gcc can > access the library? You probably want to use something like --with-stage1-ldflags and --with-boot-ldflags at configure time, see http://gcc.gnu.org/install/configure.html