You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2003/04/16 17:59:02 UTC
cvs commit: apr/test testdso.c
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.
Revision Changes Path
1.38 +1 -1 apr/test/testdso.c
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"
#else /* Every other Unix */
Re: cvs commit: apr/test testdso.c
Posted by Jeff Trawick <tr...@attglobal.net>.
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)