ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Slava Dubrovskiy <slava@elan.com.ua>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] perl Makefile.PL прописывает LD_RUN_PATH
Date: Fri, 19 Jan 2007 12:42:18 +0200
Message-ID: <45B0A08A.2030100@elan.com.ua> (raw)
In-Reply-To: <20070119101612.GS7811@localhost.localdomain>

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

Alexey Tourbin wrote:
>> Исправляю сборку 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? Как это можно
>> правильно разрулить?
>>     
>
> Наверное потому что указан нестандартный путь в -L.
> Можно просто отрезать rpath с помощью chrpath -d.
>   
Спасибо. Так и сделаю если не получится.
Кувалдой по орехам :-)

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


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

  parent reply	other threads:[~2007-01-19 10:42 UTC|newest]

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