I set the CFLAGS in CMake by C开发者_C百科MAKE_C_FLAGS. Is something like this to set LDFLAGS?It depends a bit on what you want:
My sysadmin recently installed a new version of GCC, in /lusr/opt/gc开发者_开发百科c-4.4.3. I tested it as follows: