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: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20071018/7f0d0627/attachment-0002.bin 


More information about the devel mailing list