Re: linking small programs with AC_LINK_IFELSE

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

 



* 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.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux