On Mon, 2004-05-10 at 18:26, Bill Moseley wrote:
> On Mon, May 10, 2004 at 01:34:56AM -0700, Sebastian Rottmann wrote:
> > Hi,
> >
> > I want to use Swish-E (2.4.2) on Debian/Linux (stable) by building it
> > from the source.
> >
> > I want Swish-E to use static libraries, so I am running ./configure with
> > "--enable-static=yes".
>
> Try
>
> --disable-shared=yes
doesnt work. "configure: error: invalid feature name: shared=yes"
a solution to build swish-e with static libs:
1.) make your "./configure" run. you may add the option
"--enable-static=yes". doesnt work anyway ;-)
2.) run "make" (you may log the output in a file; needed for step 5)
3.) change to the directory "src"
4.) delete ".libs/swish-e"
5.) change the line (one of the last lines):
gcc -Wall -g -O2 -o .libs/swish-e swish.o keychar_out.o dump.o
result_output.o ./.libs/libswishindex.a ./.libs/libswish-e.so -lz -lm
-Wl,--rpath -Wl,/usr/local/lib
to:
gcc -Wall -g -O2 -o .libs/swish-e swish.o keychar_out.o dump.o
result_output.o ./.libs/libswishindex.a ./.libs/libswish-e.a -lz -lm
and run the changed line again.
6.) run "make install"
7.) watch the result:
ldd swish-e
libz.so.1 => /usr/lib/libz.so.1 (0x4001e000)
libm.so.6 => /lib/libm.so.6 (0x4002d000)
libc.so.6 => /lib/libc.so.6 (0x4004f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
/Basti
ps. libtool suxxs (my boss forced me to say that ;)
--
Received on Tue May 18 07:07:49 2004