ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Slava Dubrovskiy <slava@elan.com.ua>
To: Devel@lists.altlinux.org
Subject: [devel] perl Makefile.PL прописывает LD_RUN_PATH
Date: Fri, 19 Jan 2007 11:56:37 +0200
Message-ID: <45B095D5.1010609@elan.com.ua> (raw)

[-- 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 --]

             reply	other threads:[~2007-01-19  9:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-19  9:56 Slava Dubrovskiy [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45B095D5.1010609@elan.com.ua \
    --to=slava@elan.com.ua \
    --cc=Devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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