[sisyphus] Линковка библиотеки
Alexey Borovskoy
=?iso-8859-1?q?alexey=2Eborovskoy_=CE=C1_gmail=2Ecom?=
Пт Фев 8 06:57:36 MSK 2008
Добрый день.
есть такое:
SUBDIRS = ruleset
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src/include
-I$(top_srcdir)/libmissing @defined@
noinst_HEADERS = pcre-mod.h rule-object.h rule-regex.h value-container.h
pcre_la_SOURCES = pcre-mod.c rule-object.c rule-regex.c value-container.c
pcre_la_LDFLAGS = -module -avoid-version
pcredir = $(log_plugin_dir)
pcre_LTLIBRARIES = pcre.la
Дает unresolved symbols.
Добавляю это:
pcre_la_LIBADD = -llibprelude -llibpcre
Взрывается так:
i586-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
-I../../src/include -I../../libmissing -I/usr/include/pcre -pipe -Wall
-O2 -march=i586 -mtune=i686 -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wbad-function-cast -Wcast-qual -Wcast-align
-Wnested-externs -Wunused -Wformat -Wformat-security -c debug.c -fPIC
-DPIC -o .libs/debug.o
/bin/sh ../../libtool --tag=CC --mode=link i586-alt-linux-gcc -pipe
-Wall -O2 -march=i586 -mtune=i686 -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast
-Wcast-qual -Wcast-align -Wnested-externs -Wunused -Wformat
-Wformat-security -o debug.la -rpath /usr/lib/prelude-lml -module
-avoid-version debug.lo -llibprelude
i586-alt-linux-gcc -shared .libs/debug.o -llibprelude -march=i586
-mtune=i686 -Wl,-soname -Wl,debug.so -o .libs/debug.so
/usr/bin/ld: cannot find -llibprelude
collect2: ld returned 1 exit status
make[3]: *** [debug.la] Error 1
Чо делать?
Подробная информация о списке рассылки Sisyphus