From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Сборка приложений с libpython
Date: Tue, 19 Dec 2017 17:47:03 +0300
Message-ID: <20171219144703.GB5611@altlinux.org> (raw)
In-Reply-To: <be9c5fad-53da-c83c-940c-21b37a37e0ab@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 643 bytes --]
On Tue, Dec 19, 2017 at 05:13:35PM +0300, Alexei V. Mezin wrote:
> 19.12.2017 17:08, Dmitry V. Levin пишет:
> >
> > $ python2.7-config --libs
> > -lpthread -ldl -lutil -lm -lpython2.7
> >
> > Т.е. схему 5-летней давности, видимо, кто-то сломал.
> > Тогда что у вас не работает, и почему?
>
> Апстрим ткнул меня в
> https://docs.python.org/2/extending/embedding.html#compiling-and-linking-under-unix-like-systems
>
> где написано про --ldflags, а вовсе не про --libs. И Fedora/Debian,
> например, именно так и работают.
Это неправильно, в --ldflags не должно быть никаких -l, только -L.
Для -l есть --libs.
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2017-12-19 14:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-18 17:35 Alexei Mezin
2017-12-18 18:18 ` Vitaly Lipatov
2017-12-18 19:01 ` Alexei Mezin
2017-12-19 4:35 ` Vladimir D. Seleznev
2017-12-19 5:20 ` Dmitry V. Levin
2017-12-19 13:38 ` Alexei V. Mezin
2017-12-19 14:08 ` Dmitry V. Levin
2017-12-19 14:13 ` Alexei V. Mezin
2017-12-19 14:47 ` Dmitry V. Levin [this message]
2017-12-20 6:21 ` Alexei Mezin
2017-12-20 11:17 ` Dmitry V. Levin
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=20171219144703.GB5611@altlinux.org \
--to=ldv@altlinux.org \
--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