The attached patch allows gpsim to respect user-defined CFLAGS and CXXFLAGS, instead of forcing the defaults "-g -O2". The patch is not a fine solution for upstream, in which case it should probably check for CFLAGS to not be set before setting them. HTH, Diego
Created attachment 82470 [details, diff] gpsim-0.21.2-respectflags.patch
Fixed in CVS for .2-r1 and new .11.