ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: libtool (clanlib)
@ 2004-10-14 20:56 Alexey Tourbin
  2004-10-15  1:19 ` [devel] " Alexey Tourbin
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Alexey Tourbin @ 2004-10-14 20:56 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]

Здравствуйте.
Вопрос к знатокам libtool.
Собираю clanlib-0.7.8.

В каталоге Sources/Core собирается библиотека libclanCore.la.
В каталоге Sources/Signals собирается библиотека libclanSignals.la.

Разделяемая библиотека libclanCore должна быть слинкована с разделяемой
библиотекой libclanSignals (однако Makefile'ами этого не предусмотрено).
Для этого я делаю такой патч:

--- ClanLib-0.7.8~/Sources/Core/Makefile.am	2004-04-20 13:36:27 +0000
+++ ClanLib-0.7.8/Sources/Core/Makefile.am	2004-10-14 19:58:21 +0000
@@ -125,7 +125,7 @@
 endif
 
 # FIXME: Hardcoding these here might not be a good idea
-libclanCore_la_LIBADD = @LIBPTHREAD@
+libclanCore_la_LIBADD = @LIBPTHREAD@ ../Signals/libclanSignals.la
 
 libclanCore_la_LDFLAGS = \
   -release $(LT_RELEASE) \

Однако же сборка не проходит, т.к. на момент сборки библиотеки
libclanCore.la библиотека libclanSignals.la ещё не собрана:

make[2]: *** No rule to make target `../Signals/libclanSignals.la', needed by `libclanCore.la'.  Stop.

Если перейти в каталог Sources/Signals и собрать там библиотеку
libclanSignals.la, а затем вернуться в каталог Sources/Core, то сборка
библиотеки libclanCore.la проходит уже лучше:

$ cd ../Signals
$ make
...
$ cd ../Core
$ make
/bin/sh ../../libtool --mode=link g++ ... -lpthread ../Signals/libclanSignals.la -lz
g++ -shared ... -Wl,--rpath -Wl,/home/at/RPM/BUILD/ClanLib-0.7.8/Sources/Signals/.libs -L/usr/X11R6/lib -lpthread ../Signals/.libs/libclanSignals.so -lz ...
...
$

Однако же появляется rpath на каталог Sources/Signals/.libs.

Вопрос: можно ли корректно решить эту задачу стандартными
средствами automake/libtool?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-10-22 16:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-14 20:56 [devel] Q: libtool (clanlib) Alexey Tourbin
2004-10-15  1:19 ` [devel] " Alexey Tourbin
2004-10-15  7:00 ` [devel] " Sergey V Turchin
2004-10-16 10:40   ` [devel] " Alexey Tourbin
2004-10-15  8:49 ` [devel] " Alexey Morozov
2004-10-15 10:33   ` [devel] " Alexey Tourbin
2004-10-15 15:05     ` Michael Shigorin
2004-10-21 10:15     ` Alexey Morozov
2004-10-21 16:13       ` Andrey Rahmatullin
2004-10-22  4:54         ` [devel] [JT] " Alexey Morozov
2004-10-22 13:59           ` Andrey Rahmatullin
2004-10-22 14:27             ` Dmitry V. Levin
2004-10-22 16:53               ` Andrey Rahmatullin
2004-10-22 16:59                 ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git