File QtSpim-9.0.5_pro.patch of Package QtSpim
diff -rupN QtSpim-9.0.5/QtSpim/QtSpim.pro QtSpim-9.0.5_mod/QtSpim/QtSpim.pro
--- QtSpim-9.0.5/QtSpim/QtSpim.pro 2011-01-17 22:26:30.000000000 +0100
+++ QtSpim-9.0.5_mod/QtSpim/QtSpim.pro 2011-01-29 21:33:31.994323361 +0100
@@ -83,7 +83,7 @@ FORMS += spimview.ui\
changevalue.ui
-INCLUDEPATH = ../CPU ../spim
+INCLUDEPATH = ../CPU
RESOURCES = windows_images.qrc\
@@ -170,10 +170,10 @@ linux-g++ {
# Compile all files as C++
# Surpress gcc warning about deprecated conversion from string constant to char*
#
- QMAKE_CFLAGS_DEBUG += -x c++ -Wno-write-strings
- QMAKE_CFLAGS_RELEASE += -x c++ -Wno-write-strings
- QMAKE_CXXFLAGS_DEBUG += -x c++ -Wno-write-strings
- QMAKE_CXXFLAGS_RELEASE += -x c++ -Wno-write-strings
+ QMAKE_CFLAGS_DEBUG += -x c++ -Wno-write-strings -fno-strict-aliasing $(RPM_OPT_FLAGS)
+ QMAKE_CFLAGS_RELEASE += -x c++ -Wno-write-strings -fno-strict-aliasing $(RPM_OPT_FLAGS)
+ QMAKE_CXXFLAGS_DEBUG += -x c++ -Wno-write-strings -fno-strict-aliasing $(RPM_OPT_FLAGS)
+ QMAKE_CXXFLAGS_RELEASE += -x c++ -Wno-write-strings -fno-strict-aliasing $(RPM_OPT_FLAGS)
# Surpress error when deleting non-existent file.
#
@@ -181,10 +181,10 @@ linux-g++ {
}
linux-g++-64 {
- QMAKE_CFLAGS_DEBUG += -x c++ -Wno-write-strings
- QMAKE_CFLAGS_RELEASE += -x c++ -Wno-write-strings
- QMAKE_CXXFLAGS_DEBUG += -x c++ -Wno-write-strings
- QMAKE_CXXFLAGS_RELEASE += -x c++ -Wno-write-strings
+ QMAKE_CFLAGS_DEBUG += -x c++ -Wno-write-strings -fno-strict-aliasing $(RPM_OPT_FLAGS)
+ QMAKE_CFLAGS_RELEASE += -x c++ -Wno-write-strings -fno-strict-aliasing $(RPM_OPT_FLAGS)
+ QMAKE_CXXFLAGS_DEBUG += -x c++ -Wno-write-strings -fno-strict-aliasing $(RPM_OPT_FLAGS)
+ QMAKE_CXXFLAGS_RELEASE += -x c++ -Wno-write-strings -fno-strict-aliasing $(RPM_OPT_FLAGS)
# Surpress error when deleting non-existent file.
#