278 | | Suggested compiler flags: |
279 | | We suggest to use very strict compiler flags to capture errors at the very beginning. Here our list of flags, please use them to configure you development version of GRASS: |
280 | | |
281 | | GNU/Linux: |
282 | | {{{ |
283 | | MYCFLAGS="-g -Wall -Werror-implicit-function-declaration -fno-common" |
| 278 | Suggested compiler flags: We suggest to use very strict compiler flags to capture errors at the very beginning. Here our list of flags, please use them to configure you development version of GRASS GIS. |
| 279 | |
| 280 | See also http://grasswiki.osgeo.org/wiki/Compile_and_Install |
| 281 | |
| 282 | ==== GNU/Linux ==== |
| 283 | {{{ |
| 284 | MYCFLAGS="-g -Wall -Werror-implicit-function-declaration -Wreturn-type -fno-common -fexceptions" |
285 | | |
286 | | CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCXXFLAGS" ./configure ... |
287 | | }}} |
288 | | MacOSX: [to be suggested] |
289 | | |
290 | | MS-Windows: [to be suggested] |
| 286 | MYLDFLAGS="-Wl,--no-undefined -Wl,-z,relro" |
| 287 | |
| 288 | CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCXXFLAGS" LDFLAGS="$MYLDFLAGS" ./configure ... |
| 289 | }}} |
| 290 | |
| 291 | ==== MacOSX ==== |
| 292 | |
| 293 | (to be suggested, see [http://trac.osgeo.org/grass/browser/grass/trunk/macosx/ReadMe.rtf macosx/ReadMe.rtf]) |
| 294 | |
| 295 | ==== MS-Windows ==== |
| 296 | |
| 297 | (to be suggested, see [wiki:CompileOnWindows]) |
| 298 | |
| 299 | ==== FreeBSD / NetBSD ==== |
| 300 | |
| 301 | (to be suggested) |
| 302 | |
| 303 | See also http://grasswiki.osgeo.org/wiki/Compile_and_Install#FreeBSD_.2F_NetBSD |
| 304 | |
| 305 | ==== IBM/AIX ==== |
| 306 | |
| 307 | (to be suggested) |
| 308 | |
| 309 | See also http://grasswiki.osgeo.org/wiki/Compile_and_Install#AIX |
| 310 | |
| 311 | ==== Solaris ==== |
| 312 | |
| 313 | (to be suggested) |
| 314 | |
| 315 | See also http://grasswiki.osgeo.org/wiki/Compile_and_Install#AIX |
| 316 | |
| 317 | ... |