]> granicus.if.org Git - pdns/commitdiff
make --version print out the gcc version used to compile, if gcc is used
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 8 Feb 2005 21:07:35 +0000 (21:07 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 8 Feb 2005 21:07:35 +0000 (21:07 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@294 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/receiver.cc

index 7c5a2c7b42eb66559f2516505150bf48ecdac118..9514fc9bd8adc70cfba97c227005c01a9ebafb23 100644 (file)
@@ -481,7 +481,11 @@ int main(int argc, char **argv)
     }
 
     if(arg().mustDo("version")) {
-      cerr<<"Version: "VERSION", compiled on "<<__DATE__", "__TIME__<<endl;
+      cerr<<"Version: "VERSION", compiled on "<<__DATE__", "__TIME__;
+#ifdef __GNUC__ 
+      cerr<<" with gcc version "<<__GNUC__<<"."<<__GNUC_MINOR__<<"."<<__GNUC_PATCHLEVEL__;
+#endif
+      cout<<endl;
       exit(99);
     }