libtool
[Top][All Lists]
Advanced

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

Re: how to give dependency library in libtool on hpux PA


From: joseph kanagaraj
Subject: Re: how to give dependency library in libtool on hpux PA
Date: Tue, 30 Jan 2007 23:25:02 -0800 (PST)



Ralf Wildenhues wrote:
> 
> Hello Joseph,
> 
> * joseph kanagaraj wrote on Tue, Jan 30, 2007 at 08:03:47AM CET:
>> 
>>      I am facing problem on giving dependency path through automake on
>> hpux
>> PA 32 bit . 
>> When i genreating shared library libsample2.sl which is dependent on
>> libsample1.sl which genreated but not installed in the mcahine.so while
>> generating libsample2.sl i have given the 
>>  libsample2_la_LIBADD=../../src/libsample1.la
>> 
>> With this Iam able to generate the shared library libsample2.sl. but when
>> i
>> do chatr on the library, it shows dependend path as static for
>> libssampl1.sl. This problem  iam facing on  HPUX 11.i PA 32 bit only. how
>> to
>> change the dependend path as dyanmic.  please find the sample Makefile.am
>> .
>> 
>> 
>> lib_LTLIBRARIES = libsample2.la
>> 
>>  libsample2_la_LIBADD =../../src/libsample1.la
> 
> I think the line above should be
> 
>   libsample2_la_LIBADD = ../../src/libsample1.la
> 
> Note the three changes:
> 1) add a dependency to libsample2, not to libfmkmgr.  
> 2) add a missing equals sign.
> 3) remove the .libs/ from the path.
> 
> I assume the first two are a cut-and-paste typo and are correct in your
> code, but the last one is hopefully the one that will fix your problems.
> If that's not the case, then please post the output
>   ./libtool --config
> 
> Another note:
> 
>> libsample2_la_SOURCES = samplle.c sample2.c
> 
> Automake recommends listing all sources explicitly.  The above will fail
> if you (or your users) try to use a build tree separate from the source
> tree; also, it may include sources that you may not want included (I do
>   cp foo.c foo.bak.c
> 
> sometimes when I would like to keep some version intermediately, for
> example).
> 
> Hope that helps.
> 
> Cheers,
> Ralf
> 
> Thanks lot Ralf for ur message.  It is an cut and pate typo. please find
> the correct one.
>  
>   lib_LTLIBRARIES = libsample2.la
>   libsample2_la_LIBADD = ../../src/libsample1.la
>   libsample2_la_SOURCES = samplle.c sample2.c
>   
> Iam able to generate the shared library libsample2.sl . i have given
> -rpath as /usr/lib ( for both libsample1.sl & libsample2.sl ) .I installed
> the library in /usr/lib. when i do ldd on libsample2.sl , it shows the
> path for libsample1.sl as ../../src/.libs/libsample1.sl .when i removed
> the library from ../../src/.libs/libsample1.sl , it is not taken from
> /usr/lib/libsample1.sl. 
> 
> chatr on library libsample2.sl shows path as static
> shared library 
>            shared library dynamic path search: 
>              SHLIB_PATH     enabled   second 
>              embedded path  enabled   first  /usr/lib 
>           internal name: 
>               libsample2.sl.0 
>          shared library list: 
>              static    ../../src/.libs/libsample1.sl
> 
> 
>  
> 
> _______________________________________________
> http://lists.gnu.org/mailman/listinfo/libtool
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-give-dependency-library-in-libtool-on-hpux-PA-tf3140847.html#a8724473
Sent from the Gnu - Libtool - Discuss mailing list archive at Nabble.com.





reply via email to

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