Olivier Bonnet wrote:

I'm writing a package for libxml++, and it has the strange particularity
that the package won't compile if there is an older version of libxml++
present on the system.
This is due to the building of tests with both link flags :
-L/sw/lib -L../../libxml++/.libs
This has a bad consequence because it tries to link the examples
against the old library instead of the one we're trying to
build and fails at this point.

generally you get things like this with the default LDFLAGS from fink packages. You could try:

NoSetLDFLAGS: true
SetLIBS: -L%p/lib

...that might make it so the /sw/lib ends up after the other. Otherwise, you might have to hack the Makefile (well Makefile.in, to make it reproducible) to make sure that the source tree version gets found first.

--
Benjamin Reed a.k.a. Ranger Rick -- http://ranger.befunk.com/
gpg: 6401 D02A A35F 55E9 D7DD  71C5 52EF A366 D3F6 65FE
A computer scientist is someone who, when told to 'Go to Hell', sees
the 'go to', rather than the destination, as harmful.


Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to