ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Yury Aliaev <mutab0r@rambler.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>,
	ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [devel] %optflags и qmake
Date: Fri, 26 May 2006 11:54:06 +0400
Message-ID: <4476B41E.6000802@rambler.ru> (raw)
In-Reply-To: <200605251407.19701.zerg@altlinux.org>

Прежде всего спасибо всем, кто пытался мне помочь! Мне, наконец, удалось 
заставить qmake создавать makefile'ы с нужными флагами. Оказалось, что:
1) В .pro файлах нужно было определять не QMAKE_CFLAGS, а QMAKE_CXXFLAGS 
(исходники-то были на cpp, а я -- тормоз! :-D Не совсем понятно, зачем 
там вообще определяются CFLAGS, вроде qt не предназначена для линковки с 
сишными (без плюсов) прогами);
2) Ещё оказалось, что если в проекте имеется несколько подчинённых .pro 
файлов, то CXXFLAGS нужно прописывать во _всех_, а не только в файле 
верхнего уровня. В этой связи у меня возник ВОПРОС: как лучше всего 
добавить строчку вида QMAKE_CXXFLAGS_RELEASE = ... во _все_ .pro файлы 
проекта (добавлять можно в любое место файла, удобнее всего, наверное, в 
конец)? Я пытался соорудить некую конструкцию из find -name *.pro, xargs 
и echo, но безуспешно...

С уважением,
Юрий.


  reply	other threads:[~2006-05-26  7:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-18 10:46 Yury Aliaev
2006-05-18 12:01 ` Sergey V Turchin
2006-05-25  8:37   ` Yury Aliaev
2006-05-25 10:07     ` Sergey V Turchin
2006-05-26  7:54       ` Yury Aliaev [this message]
2006-05-26  7:57         ` Slava Semushin
2006-05-26  8:43         ` Grigory Batalov
2006-05-26 11:43           ` Yury Aliaev
2006-05-26 13:26             ` Grigory Batalov
2006-05-29  9:37               ` Yury Aliaev

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=4476B41E.6000802@rambler.ru \
    --to=mutab0r@rambler.ru \
    --cc=devel@lists.altlinux.org \
    --cc=sisyphus@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