We're currently using -O3 in most of the ThinLinc build. This does not seem to be a good choice as almost everyone else is using -O2 and -O3 is therefore poorly tested and buggy. We've had at least one bug cause by this. See bug 3304 for some more details.
Also remember to remove the hack mentioned in bug 4711.
*** Bug 4518 has been marked as a duplicate of this bug. ***
-O3 breaks compilation of Xorg in a new way with gcc 5.1: https://bugs.freedesktop.org/show_bug.cgi?id=73089
Switched everything over to a common "-Wall -O2 -g" in r30457. Cleaned up tlclient's Makefile a bit in r30458.
(In reply to comment #3) > -O3 breaks compilation of Xorg in a new way with gcc 5.1: > > https://bugs.freedesktop.org/show_bug.cgi?id=73089 Wrong link. I was supposed to be this one: https://bugs.freedesktop.org/show_bug.cgi?id=91031
(In reply to comment #4) > Switched everything over to a common "-Wall -O2 -g" in r30457. Cleaned up > tlclient's Makefile a bit in r30458. Nothing in our source code refers to -O3, and all client binaries still work.