ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: REAL <root@mmedia2.kemsu.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] %python_build
Date: Mon, 28 Feb 2011 15:32:34 +0600
Message-ID: <4D6B6BB2.2090100@mmedia2.kemsu.ru> (raw)
In-Reply-To: <4D6B672B.2010502@mmedia2.kemsu.ru>

28.02.2011 15:13, REAL пишет:
> Макрос %python_build имеет один недостаток: если нужно передать флаги
> gcc, это нужно задавать явно. Я предлагаю новый макрос -
> %python_build_std, который будет по аналогии с %configure использовать
> установленные флаги, и автоматически появляется возможность
> безнапряжно использовать %add_optflags

Или (ещё проще и безнапряжно для мейнтейнеров) ввернуть такую штуку в 
сам %python_build.

Возражения, замечания?

Сейчас всё это выглядит так:
%python_build_std \
   CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
   CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
   FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
   %__python setup.py build

Есть повод подумать, нужно ли туда добавлять F90FLAGS.

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ


  reply	other threads:[~2011-02-28  9:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-28  9:13 REAL
2011-02-28  9:32 ` REAL [this message]
2011-03-01  7:06   ` REAL
2011-03-01  7:07     ` REAL
2011-03-05 15:10       ` Dmitry V. Levin
2011-03-05 15:24         ` REAL

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=4D6B6BB2.2090100@mmedia2.kemsu.ru \
    --to=root@mmedia2.kemsu.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