autoconf
[Top][All Lists]
Advanced

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

Re: linking small programs with AC_LINK_IFELSE


From: Benoit Sigoure
Subject: Re: linking small programs with AC_LINK_IFELSE
Date: Fri, 19 Jan 2007 07:38:26 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.0.2)

Quoting Ralf Wildenhues <address@hidden>:

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


Why would it break the API if he simply adds a dummy symbol to make the
difference between stock libexpat and his modified version?

--
SIGOURE Benoit aka Tsuna
  _____
 /EPITA\ Promo 2008, LRDE





reply via email to

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