From: "Pavel S. Khmelinsky" <hmepas@yauza.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] rpm -ba --target=i586: If $CFLAGS not empty it parsed to configure without changes
Date: Tue, 17 Jun 2003 12:45:06 +0400
Message-ID: <3EEED512.3050508@yauza.ru> (raw)
[hmepas@localhost SPECS]$ echo $CFLAGS
-O3 -mcpu=athlon -march=athlon -funroll-loops
[hmepas@localhost SPECS]$ rpmbuild -bc \
--short-circuit --target=i586 some.spec
Платформы для сборки: i586
Сборка для платформы i586
Выполняется(%build): /bin/sh -e /home/hmepas/RPM/TMP/rpm-tmp.13009
+ umask 022
+ /bin/mkdir -p /home/hmepas/RPM/BUILD
+ cd /home/hmepas/RPM/BUILD
+ cd sphinx2-0.4
+ CFLAGS=-O3 -march=athlon -funroll-loops
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ export CFLAGS
Т.е. используется мой кривой $CFLAGS без всяких изменений, не
смотря на то что --target=i586. Т.е. в результате target
игнорируется.
Если же использовать пустой CFLAGS, то он нормально побменяется в
соответсвии с target.
[hmepas@localhost SPECS]$ CFLAGS='' rpmbuild -bc \
--short-circuit --target=i586 sphinx2.spec
Платформы для сборки: i586
Сборка для платформы i586
Выполняется(%build): /bin/sh -e /home/hmepas/RPM/TMP/rpm-tmp.4330
+ umask 022
+ /bin/mkdir -p /home/hmepas/RPM/BUILD
+ cd /home/hmepas/RPM/BUILD
+ cd sphinx2-0.4
+ CFLAGS=-pipe -Wall -O2 -fexpensive-optimizations -march=i586
-mcpu=i686
+ export CFLAGS
На мой взгляд это откровенный баг. Ибо держать пустую CFLAGS мне
не удобно, т.к. я часто собираю проги просто из исходников.
(собираю не значит ставлю их потом make install)
И каждый раз прописывать CFLAGS мне не удобно.
CFLAGS='' rpmbuild делать удобнее, но нужно еще об этом не
забыть, а то будет весело залить 586.rpm скомпиленный с
march=athlon куда-нибудь. ^)
next reply other threads:[~2003-06-17 8:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-17 8:45 Pavel S. Khmelinsky [this message]
2003-06-17 8:56 ` Dmitry V. Levin
2003-06-17 9:16 ` Pavel S. Khmelinsky
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=3EEED512.3050508@yauza.ru \
--to=hmepas@yauza.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