[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getting a locally built library
From: |
David Bacher |
Subject: |
Re: getting a locally built library |
Date: |
Thu, 14 Nov 2002 10:45:09 -0800 |
On Thursday, November 14, 2002, at 08:39 AM, Alexandre Duret-Lutz wrote:
David, could you explain where `-L../autoopts/.libs -lopts' comes
from?
Sure.
Here are my original libtool link and compiler link commands:
/bin/sh ../libtool --mode=link gcc -g -O2 -L/sw/lib -o autogen
autogen-opts.o autogen-cgi-fsm.o autogen-agCgi.o autogen-agShell.o
autogen-agUtils.o autogen-autogen.o autogen-defDirect.o
autogen-defFind.o autogen-defLex.o autogen-defLoad.o autogen-defParse.o
autogen-defReduce.o autogen-expExtract.o autogen-expFormat.o
autogen-expGperf.o autogen-expGuile.o autogen-expMake.o
autogen-expOutput.o autogen-expPrint.o autogen-expState.o
autogen-expString.o autogen-funcCase.o autogen-funcDef.o
autogen-funcEval.o autogen-funcFor.o autogen-funcIf.o
autogen-functions.o autogen-loadPseudo.o autogen-tpLoad.o
autogen-tpParse.o autogen-tpProcess.o ../autoopts/libopts.la
-export-dynamic -lguile -ldl
gcc -g -O2 -o .libs/autogen autogen-opts.o autogen-cgi-fsm.o
autogen-agCgi.o autogen-agShell.o autogen-agUtils.o autogen-autogen.o
autogen-defDirect.o autogen-defFind.o autogen-defLex.o
autogen-defLoad.o autogen-defParse.o autogen-defReduce.o
autogen-expExtract.o autogen-expFormat.o autogen-expGperf.o
autogen-expGuile.o autogen-expMake.o autogen-expOutput.o
autogen-expPrint.o autogen-expState.o autogen-expString.o
autogen-funcCase.o autogen-funcDef.o autogen-funcEval.o
autogen-funcFor.o autogen-funcIf.o autogen-functions.o
autogen-loadPseudo.o autogen-tpLoad.o autogen-tpParse.o
autogen-tpProcess.o -L/sw/lib -L../autoopts/.libs -lopts -lguile -lm
-ldl
ld: Undefined symbols:
_aopts_alloc
_aopts_realloc
_aopts_strdup
make[1]: *** [autogen] Error 1
As far as I can tell, libtool turns "../autoopts/libopts.la" into
"-L../autoopts/.libs -lopts".
Configure parameters:
CPPFLAGS=-I/sw/include
LDFLAGS=-L/sw/lib
--prefix=/sw
--enable-snprintfv-install
--mandir=/sw/share/man
--infodir=/sw/share/info
libopts.la has this version information:
# libopts.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.54 2001/09/11
03:33:37)
-dave