make qmake honour $RPM_OPT_FLAGS

Till Maas opensource at till.name
Thu Oct 18 16:11:21 UTC 2007


Hiyas,

when one wants to make sure that a package, that uses qmake(-qt4) to build its 
Makefile, honours $RPM_OPT_FLAGS, waht is the best method?

Is e.g. the following good? (It's in example for vym):
qmake-qt4 INSTALLDIR=%{buildroot}%{_prefix} \
QMAKE_CFLAGS="%{optflags}" \
QMAKE_CXXFLAGS="%{optflags}" \
QMAKE_LFLAGS="%{optflags}"

Regards,
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20071018/7f0d0627/attachment.sig>


More information about the fedora-devel-list mailing list