[strongSwan] Changing Library Names
T Cheung
tccheung1 at gmail.com
Thu Dec 8 23:08:53 CET 2011
I looked into Makefiles more, and found this issue: Even I installed
my library into a dedicated directory using --with-ipseclibdir, the
linker still passes the dynamic library path as default
${libdir%/}/ipsec. I wonder if it's a bug that with-ipseclibdir only
changes the installation directory without changing where the programs
look up their dynamic libraries. For now I think I can create a soft
link ipsec in ${libdir%/}/ to point to my installation directory. If
there is another config option that would take care of this, that
would be preferred. Otherwise this workaround is sufficient for now.
Thanks,
Terry
On Thu, Dec 8, 2011 at 9:22 AM, T Cheung <tccheung1 at gmail.com> wrote:
> I have tried installing them to a dedicated directory. The problem is
> that while I also set LDFLAGS to the linker with -L option, the
> programs still look at standard lib directories. It's an issue on a
> PowerPC platform only. Maybe I have to learn the linker for that
> plaftform to see if there is a better way to fix the library lookup.
> Meanwhile I am exploring all options, include statically linking them,
> but ran into unresolved symbols when I did that.
>
> Regards,
> Terry
>
> On Thu, Dec 8, 2011 at 12:00 AM, Martin Willi <martin at strongswan.org> wrote:
>> Hi,
>>
>>> Is there an easy way to change the dynamic library names
>>> (libstrongswan, libhydra, and libcharon) to something else?
>>
>> No, these are hard-coded. What's the reason for doing so?
>>
>> If you need to separate these libraries, you can add --with-ipseclibdir
>> to ./configure to install them in a dedicated directory (since 4.6.0).
>>
>> Regards
>> Martin
>>
More information about the Users
mailing list