From: Vitaly Lipatov <lav@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Сборка приложений с libpython
Date: Mon, 18 Dec 2017 21:18:31 +0300
Message-ID: <e95d02b6d9f029df0ca06d633a985075@altlinux.ru> (raw)
In-Reply-To: <3f0a0e62-618a-303c-8cae-f49f6e02090f@gmail.com>
Alexei Mezin писал 18.12.17 20:35:
> У нас python-config выдает флаги компиляции без -lpython2.7
>
> $ python2.7-config --ldflags --cflags
> -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
> -I/usr/include/python2.7
>
> В результате некоторые configure-скрипты обламываются в сборке
> тестовой программы
...
> Это так и должно быть? Или у нас какой-то совершенно особенный подход
> к питону? Потому что в других дистрибутивах на этот configure не
> жалуются, значит там все работает. В Убунте точно есть нужная
> библиотека в списке.
Так багу?
Fedora:
[lav@fedora64 ~]$ python-config --ldflags --cflags
-lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
-I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing
-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv
--
С уважением,
Виталий Липатов,
Etersoft
next prev parent reply other threads:[~2017-12-18 18:18 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 [this message]
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
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=e95d02b6d9f029df0ca06d633a985075@altlinux.ru \
--to=lav@altlinux.ru \
--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