This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Adding a file to libgomp
- From: Ian Lance Taylor <iant at google dot com>
- To: Amittai Aviram <amittai dot aviram at yale dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 22 Nov 2011 17:21:42 -0800
- Subject: Re: Adding a file to libgomp
- References: <14459FDB-FBB6-42EA-974B-EADB07331BA4@yale.edu>
Amittai Aviram <amittai.aviram@yale.edu> writes:
> I am creating a modified version of GCC's libgomp library, which involves a few additional files. I've already added three successfully, but now I have to add a fourth, and I cannot remember the correct procedure. I tried adding the name of the file to the list of *.c files called libgomp_la_SOURCES in Makefile.am (line 34 in my GCC release), and then went to my build directory (which is a sibling to my gcc source's root directory), and entered
>
> ../configure --prefix=<my_install_directory_path>
> make -j
> make -j install
>
> But, when I looked at gcc_obj/x86_64-unknown-linux-gnu, I found no reference to the new file, and an objdump disassembly confirms that the new code is not there.
>
> What is the correct way to add a file to the libgomp build? Thanks!
After modifying Makefile.am you need to run automake in order to get a
new Makefile.in.
Ian