ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] qmake, target i586
Date: Sat, 24 Jul 2004 22:10:36 +0400
Message-ID: <20040724181036.GA3122@sirius.home> (raw)
In-Reply-To: <410299F0.6040506@mail.ru>

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

On Sat, Jul 24, 2004 at 11:18:40PM +0600, Alex wrote:
> Есть проект, накоденый с использованием Qt (не KDElibs). configure не 
> используется, Makefile строится qmake'ом. Как в данном случае правильно 
> собрать пакет под i586? При вызове rpm -bb --target i586 
> имя_проекта.spec создаётся файл имя_проекта.i586.rpm, но я же вижу, что 
> компилятору указывалось -mcpu=i686! Архитектура определилась qmake'ом, а 
> опция target была игнорирована. Или configure должен ОБЯЗАТЕЛЬНО 
> присутствовать и обрабатывать опции?

Вот стандартные опции:

$ grep '^%optflags\>' /usr/lib/rpm/i586-alt-linux/macros
%optflags               %optflags_default -march=i586 -mcpu=i686

Опция -march=... устанавливает ограничения на использование команд
(определяет самый старый процессор, на котором запустится
скомпилированная программа).  Опция -mcpu=... определяет, под какой
процессор оптимизируется код, но не влияет на разрешённый набор
команд.  Т.е., в данном случае результат компиляции будет работать на
i586, но при оптимизации будет отдаваться предпочтение более
эффективной работе на i686.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-07-24 18:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-24 17:18 Alex
2004-07-24 18:10 ` Sergey Vlasov [this message]
2004-07-25 14:00   ` Alex
2004-07-25 20:57     ` Alexey Lubimov
2004-07-25 21:01     ` Alexey Lubimov
2004-08-02 17:46     ` Sergey V Turchin

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=20040724181036.GA3122@sirius.home \
    --to=vsu@altlinux.ru \
    --cc=sisyphus@altlinux.ru \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git