Skip to main content.
home | support | download

Back to List Archive

Re: Problem: compiling with static libs

From: Sebastian Rottmann <Sebastian_Rottmann(at)>
Date: Tue May 18 2004 - 14:07:48 GMT
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/ -lz -lm
-Wl,--rpath -Wl,/usr/local/lib

  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 => /usr/lib/ (0x4001e000) => /lib/ (0x4002d000) => /lib/ (0x4004f000)
        /lib/ => /lib/ (0x40000000)


ps. libtool suxxs (my boss forced me to say that ;)
Received on Tue May 18 07:07:49 2004