Re: [PyQt] Compiler Flags and PyQt
On Sunday 24 June 2012, 19:32:44 Phil Thompson wrote: On Sun, 24 Jun 2012 12:05:15 -0400, Scott Kitterman deb...@kitterman.com wrote: Passing the CCPFLAGS via CFLAGS/CXXFLAGS as discussed yesterday worked great for SIP4. I it mostly working for PyQT, but it doesn't appear that QtCore/QtGui and the Designer plugin aren't getting the all flags. I'm passing these flags: CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat- security -Werror=format-security -D_FORTIFY_SOURCE=2 CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat- security -Werror=format-security -D_FORTIFY_SOURCE=2 LFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro It looks like QtCore/QtGui aren't getting the CXXFLAGS They are as far as I can see. and the plugin isn't getting the LFLAGS. The Designer plugin is built using qmake and doesn't use the SIP build system. One way to get around this issue is propagating the the compiler flags into all qt project files as QMAKE_CXXFLAGS. @Scott: here's how I solved this (line 96 ff.): https://build.opensuse.org/package/view_file?file=python-qt4.specpackage=python-qt4project=home%3Afrispete%3APyQtrev=6161032f9d1629c3293dd3356c02dc49 Be careful: studying sed scripts on an empty stomach may result in serious personal injury. Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Compiler Flags and PyQt
On Monday, June 25, 2012 08:55:30 PM Hans-Peter Jansen wrote: @Scott: here's how I solved this (line 96 ff.): https://build.opensuse.org/package/view_file?file=python-qt4.specpackage=py thon-qt4project=home%3Afrispete%3APyQtrev=6161032f9d1629c3293dd3356c02dc49 Thank you. I'll give something like that a shot (until maybe I get the Debian Qt maintainers to change it there). Scott K ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Compiler Flags and PyQt
On Sun, 24 Jun 2012 12:05:15 -0400, Scott Kitterman deb...@kitterman.com wrote: Passing the CCPFLAGS via CFLAGS/CXXFLAGS as discussed yesterday worked great for SIP4. I it mostly working for PyQT, but it doesn't appear that QtCore/QtGui and the Designer plugin aren't getting the all flags. I'm passing these flags: CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat- security -Werror=format-security -D_FORTIFY_SOURCE=2 CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat- security -Werror=format-security -D_FORTIFY_SOURCE=2 LFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro It looks like QtCore/QtGui aren't getting the CXXFLAGS They are as far as I can see. and the plugin isn't getting the LFLAGS. The Designer plugin is built using qmake and doesn't use the SIP build system. Please see the attached build log with Python 2.7 (it's the same with 2.6 and 3.2). I'd appreciate any advice on this. Scott K If these flags are Debian standard then why not add them to Qt's spec file for Debian? PyQt will then pick them up automatically. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Compiler Flags and PyQt
On Sunday, June 24, 2012 06:32:44 PM Phil Thompson wrote: ... If these flags are Debian standard then why not add them to Qt's spec file for Debian? PyQt will then pick them up automatically. Thanks for the suggestion. I'm not the Debian Qt maintainer, so I can't just do it, but I'll discuss it with them. Scott K ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt