I'm compiling OpenSSL on Unix-machine. The default compiler is GCC-4.4.7. I put an alternative compiler GCC-5.2.0 in another folder. I usually will prepend the path of alternative compiler to $PATH so that gcc will always use the one in alternative path.
But now I'm uncertain with the library I compiled, is there a way to tell which gcc is used for compiling my library? A workaround on the .o files is appreciated as well.