ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] perl Makefile.PL прописывает LD_RUN_PATH
@ 2007-01-19  9:56 Slava Dubrovskiy
  2007-01-19 10:04 ` Valery V. Inozemtsev
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Slava Dubrovskiy @ 2007-01-19  9:56 UTC (permalink / raw)
  To: Devel

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

Здравствуйте.

Исправляю сборку perl-GraphicsMagick.
Хочу чтобы правильно линковалось.
В Makefile.PL указано
'LIBS'       => ['-L../magick/.libs -lGraphicsMagick -L/usr/lib
-L/usr/lib -llcms -lfreetype -lXext -lSM -lICE
Делаю
$perl Makefile.PL
$make
Получаю вот такой вывод:
LD_RUN_PATH="/home/slava/RPM/BUILD/GraphicsMagick-1.1.7/PerlMagick/../magick/.libs"
gcc  -L/usr/lib -shared -Wl,-O1 -L/usr/local/lib Magick.o  -o
blib/arch/auto/Graphics/Magick/Magick.so        \
          
-L/home/slava/RPM/BUILD/GraphicsMagick-1.1.7/PerlMagick/../magick/.libs
-lGraphicsMagick -L/usr/lib -L/usr/lib -llcms -lfreetype -lXext -lSM
-lICE -lX11 -lbz2 -lz -lm -lpthread       \
           -L/usr/lib/perl5/i386-linux/CORE -lperl -lpthread
-Wl,-z,defs,--warn-unresolved-symbols

И как результат
$readelf -d blib/arch/auto/Graphics/Magick/Magick.so  | grep RPATH
 0x0000000f (RPATH)                      Library rpath:
[/home/slava/RPM/BUILD/GraphicsMagick-1.1.7/PerlMagick/../magick/.libs]

Если исправить Makefile чтобы не указывать
LD_RUN_PATH="/home/slava/RPM/BUILD/GraphicsMagick-1.1.7/PerlMagick/../magick/.libs"
, то все нормально.

Вопрос: Почему perl Makefile.PL создает LD_RUN_PATH? Как это можно
правильно разрулить?

-- 
С уважением,
Дубровский Вячеслав.


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3237 bytes --]

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

end of thread, other threads:[~2007-01-22  7:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-19  9:56 [devel] perl Makefile.PL прописывает LD_RUN_PATH Slava Dubrovskiy
2007-01-19 10:04 ` Valery V. Inozemtsev
2007-01-19 10:10   ` Slava Dubrovskiy
2007-01-19 10:14   ` Slava Dubrovskiy
2007-01-19 10:42   ` Slava Dubrovskiy
2007-01-19 10:46     ` Valery V. Inozemtsev
2007-01-19 10:56       ` Slava Dubrovskiy
2007-01-19 11:39         ` Anton Farygin
2007-01-19 13:57 ` Alexey Tourbin
2007-01-19 14:04   ` Anton Farygin
2007-01-19 14:08     ` Alexey Tourbin
2007-01-19 20:17 ` Dmitry V. Levin
2007-01-22  7:17   ` Slava Dubrovskiy

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