apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: cvs commit: apr/test testdso.c
Date Wed, 16 Apr 2003 17:27:22 GMT
jorton@apache.org wrote:
> jorton      2003/04/16 08:59:02
> 
>   Modified:    test     testdso.c
>   Log:
>   Add another hack to make testdso pass on BSD/OS; this needs fixing
>   properly sometime as these workarounds will break with future
>   libtool releases.

>   Index: testdso.c
>   ===================================================================
>   RCS file: /home/cvs/apr/test/testdso.c,v
>   retrieving revision 1.37
>   retrieving revision 1.38
>   diff -u -u -r1.37 -r1.38
>   --- testdso.c	2 Jan 2003 14:13:46 -0000	1.37
>   +++ testdso.c	16 Apr 2003 15:59:01 -0000	1.38
>   @@ -74,7 +74,7 @@
>    #elif defined(__hpux__)
>    # define MOD_NAME ".libs/mod_test.sl"
>    # define LIB_NAME ".libs/libmod_test.sl"
>   -#elif defined(_AIX)
>   +#elif defined(_AIX) || defined(__bsdi__)
>    # define MOD_NAME ".libs/libmod_test.so"
>    # define LIB_NAME ".libs/libmod_test.so"

so tweak APR so that if you pass foo.la to apr_dso_load() it assumes 
that it is a libtool .la file and it grabs this piece of information:

# The name that we can dlopen(3).
dlname='mod_test.so'

whether or not the name should be prefixed with .lib/ may be dependent 
on this information:

# Is this an already installed library?
installed=no

(duck)


Mime
View raw message