gccconfigurationubuntu-12.04gcc4

how to check installed gcc has some flag configured?


How to check if the installed gcc has any of the flags enabled in configuration.

E.g. I want to check if the installed gcc has this --enable-__cxa_atexit flag enabled ?

I have Ubuntu 12.04 & gcc 4.6


Solution

  • Run gcc --version -v. It will output the configure invocation.