partially revert 2e9fdf8841de40f008697ba8bf711fa3f3f2c0e8
authorMatthias Braun <matze@braunis.de>
Wed, 7 Dec 2011 17:41:56 +0000 (18:41 +0100)
committerMatthias Braun <matze@braunis.de>
Wed, 7 Dec 2011 22:28:13 +0000 (23:28 +0100)
(releases don't have firm_revision.h so we need to check for
HAVE_FIRM_REVISION_H define)

Makefile
ir/common/firm.c

index 909d5c7..745b737 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ AR ?= ar
 DLLEXT ?= .so
 
 # Variants
-CFLAGS_all        = -fPIC
+CFLAGS_all        = -fPIC -DHAVE_FIRM_REVISION_H
 CFLAGS_debug      = $(CFLAGS_all) -O0 -g3 -DDEBUG_libfirm
 CFLAGS_profile    = $(CFLAGS_all) -O3 -pg -DNDEBUG -fno-inline
 LINKFLAGS_profile = -pg
index 61dda05..916fccc 100644 (file)
@@ -24,7 +24,9 @@
  */
 #include "config.h"
 
-#include "firm_revision.h"
+#ifdef HAVE_FIRM_REVISION_H
+# include "firm_revision.h"
+#endif
 
 #include <string.h>
 #include <stdio.h>