Move -fPIC, -w and -g0 to the GDB side.