From: Alexey Lubimov <avl@l14.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] qmake, target i586
Date: Mon, 26 Jul 2004 00:57:50 +0400
Message-ID: <41041ECE.5000006@l14.ru> (raw)
In-Reply-To: <4103BCEA.50103@mail.ru>
Alex wrote:
> Sergey Vlasov пишет:
>
>> 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.
>>
>>
>>
>>
> Спасибо!
> P.S.
> Если не задавать target вообще, то результат одентичен target i586 (
> то есть компилеру передаётся -march=i586 -mcpu=i686 (это сгенерил
> qmake) ).
>
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@altlinux.ru
> https://lists.altlinux.ru/mailman/listinfo/sisyphus
next prev parent reply other threads:[~2004-07-25 20:57 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
2004-07-25 14:00 ` Alex
2004-07-25 20:57 ` Alexey Lubimov [this message]
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=41041ECE.5000006@l14.ru \
--to=avl@l14.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