Attached you can find a patch that fixes the issue by using -fno-strict- aliasing.
Note that the rules-file was broken anyway in that OpenCV does not use CFLAGS but CXXFLAGS. The rules-file is still broken in that the -O2 or -O0 of the CXXFLAGS gets overridden in any case by a -O3 that comes later on the compiler command line. -- Lots of warnings when compiling https://launchpad.net/bugs/57585 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
