본문 바로가기

개발일기/Trouble Shooting

cc: error: unrecognized command line option ‘-fcf-protection=full’; did you mean ‘-fstack-protector-all’?

make 를 실행 시 다음과 같은 오류가 발생했다.

cc: error: unrecognized command line option ‘-fcf-protection=full’; did you mean ‘-fstack-protector-all’?

GCC 버전에 따라 발생하는 오류인 거 같은데 GCC 버전을 바꿔도 안되길래

1) grep -rn "fcf"을 -fcf-protection=full에 해당하는 부분을 찾고

2) 전부 -fstack-protector-all로 바꿔줬더니 오류가 해결됐다.