about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--Makefile.common3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index ff83602c..8bd74ae0 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -26,6 +26,9 @@ LLVMCC := $(LLVMGCC)
 LLVMCXX := $(LLVMGXX)
 endif
 
+# Needed to build runtime library using clang (gnu89 is the gcc default)
+C.Flags += -std=gnu89
+
 ifeq ($(ENABLE_EXT_STP),1)
   LD.Flags += -L$(STP_ROOT)/lib
   CXX.Flags += -I$(STP_ROOT)/include