Bug 338791 - qmake-qt4 does not honour $RPM_OPT_FLAGS
qmake-qt4 does not honour $RPM_OPT_FLAGS
Product: Fedora
Classification: Fedora
Component: qt4 (Show other bugs)
All Linux
high Severity high
: ---
: ---
Assigned To: Ngo Than
Fedora Extras Quality Assurance
Depends On:
Blocks: F8Blocker
  Show dependency treegraph
Reported: 2007-10-18 16:52 EDT by Till Maas
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-18 21:52:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Till Maas 2007-10-18 16:52:57 EDT
Description of problem:

According to Rex Dieter[1] qmake-qt4 should honour $RPM_OPT_FLAGS by default,
e.g. when the Makefile for vym is generated, it should contain the contents of
$RPM_OPT_FLAGS in (C|CXX|L)FLAGS, but it does not do this always (or maybe
never), e.g.:

[1] https://www.redhat.com/archives/fedora-devel-list/2007-October/msg01447.html

Version-Release number of selected component (if applicable):

How reproducible:

Always, first seen on a local Fedora 7 build.

Steps to Reproduce:
1. use qmake-qt4 on vym.pro from
Actual results:

contents of $RPM_OPT_FLAGS do not appear, e.g. -fstack-protector or

Expected results:
Everything should be compiled with at least these flags:

-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic

Additional info:

If this is not only a problem of vym, but other packages built with using qmake,
then they should be rebuild with the correct flags, because they add protection
against some security flaws. Therefore I add F8Blocker to "Blocks".
Comment 1 Rex Dieter 2007-10-18 21:41:54 EDT
This is most likely a bug in vym, not qt4. 

I'll go take a closer look.
Comment 2 Rex Dieter 2007-10-18 21:46:33 EDT
For examples, see
Comment 3 Rex Dieter 2007-10-18 21:52:12 EDT
vym.pro needs
CONFIG += ... release
instead of 'debug' in there somewhere to inherit the proper flags.

'debug' targets purposely omit optimization flags.

Note You need to log in before you can comment on or make changes to this bug.