gcc -O2 -Wall -ansi -pedantic-errors -fomit-frame-pointer -D_GNU_SOURCE This will be used to compile .c files. use -fPIC to generate position-independent code -fpic generate faster and smaller code, but has platform-dependent limitations and may not work.