[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r38120 - in trunk: . build/ac-macros subversion/bindings/swig/perl/native

From: Branko Cibej <brane_at_xbc.nu>
Date: Mon, 22 Jun 2009 12:43:04 +0200

Arfrever Frehtes Taifersar Arahesis wrote:
> 2009-06-21 23:25:15 Greg Stein napisaƂ(a):
>
>> On Sun, Jun 21, 2009 at 03:40, Arfrever Frehtes Taifersar
>> Arahesis<Arfrever.FTA_at_gmail.com> wrote:
>>
>>> ...
>>>
>>>> If expat was being found just fine before r38120
>>>>
>>> It was being found only because APR-Util was accidentally linked against Expat
>>> and apu-1-config was providing path to Expat directory which was used during
>>> building of APR-Util.
>>>
>> That is NOT an "accident". That is entirely by design.
>>
>
> So the design is broken.
> Even libaprutil-1.so isn't linked against libraries printed by
> `apu-1-config --libs`, so linking against these libraries would slow down
> Subversion at run-time (ld.so would have to load attitional libraries).
>
> $ apu-1-config --libs
> -lldap -llber -llber -ldb-4.7 -lgdbm -lexpat
> $ scanelf -qF '%F: %n' /usr/lib64/libaprutil-1.so
> /usr/lib64/libaprutil-1.so: libexpat.so.1,libapr-1.so.0,libcrypt.so.1,libpthread.so.0,libc.so.6
>

Everyting that apu-1-config prints comes from the APR-util link command
line ... so, maybe there's a -Wl,--as-needed in there somewhere. Getting
our build to use that (portably) is a much better idea than breaking builds.

-- Brane

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2364119
Received on 2009-06-22 12:43:30 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.