autoconf
[Top][All Lists]
Advanced

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

Re: conftest files


From: Albert Chin
Subject: Re: conftest files
Date: Fri, 11 Aug 2006 15:47:10 -0500
User-agent: Mutt/1.5.6i

On Fri, Aug 11, 2006 at 08:52:00AM -0400, Christopher Hulbert wrote:
> I have a problem when compiling with intraprocedural analysis flags
> (currently with the PGI compilers, I haven't checked other IPA/IPO
> capable compilers) where after testing for a library with AC_TRY_LINK,
> I test for another library. The first library was compiled with IPA
> information, so the PGI compiler creates some updated IPA information
> for the conftest. When testing for the next library compiled without
> IPA information, it doesn't overwrite the original IPA file and gets
> an undefined symbol resulting from the first library.
> 
> So, to boil that confusion down, is there any way (other than issuing
> an explicit rm -f *conftest* in my autoconf function) to make sure all
> conftest files are deleted?

Presumably, the IPA information is stored in the directory of the
test. Why not create a shell script that wraps the compiler executable
that removes these temporary files? Then, rebuild with:
  ./configure CC=<path to IPA-compiler wrapper> ...

-- 
albert chin (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]