[Top][All Lists]

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

Re: linking small programs with AC_LINK_IFELSE

From: Ralf Wildenhues
Subject: Re: linking small programs with AC_LINK_IFELSE
Date: Thu, 18 Jan 2007 22:00:51 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* Bob Rossi wrote on Thu, Jan 18, 2007 at 09:54:24PM CET:
> Well, lets say I modified libexpat and it's now different than the one
> on the system.
> However, if for some reason the local expat build fails, my check to 
> compile a small program still works because it picks up the installed 
> one on the system.

So add a symbol to your modified libexpat.  Link against that symbol in
your source code.  Use -no-undefined.  Then programs will fail to link
(and on some systems, those where -no-undefined works well, also
libraries will fail to link).  Of course you've broken the API now.

Hope that helps.


reply via email to

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