summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-24 17:44:42 +0000
committerChris Lattner <sabre@nondot.org>2008-06-24 17:44:42 +0000
commit58a4c5e8e3b12bc4dd4659bda48f2f3188067eea (patch)
treeb2f4b5056fe1fbd6d1d55c7e238056d49866af77 /Makefile.rules
parent2b08676ca8b6a19ba02df7a2237b8d43531a586b (diff)
downloadllvm-58a4c5e8e3b12bc4dd4659bda48f2f3188067eea.tar.gz
llvm-58a4c5e8e3b12bc4dd4659bda48f2f3188067eea.tar.bz2
llvm-58a4c5e8e3b12bc4dd4659bda48f2f3188067eea.tar.xz
Add support for building on solaris, working around namespace
polution problems from system headers. Patch by Nathan Keynes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52682 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 74b5a32ae8..b8006a2a1f 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -451,6 +451,10 @@ ifdef UNIVERSAL
DISABLE_AUTO_DEPENDENCIES=1
endif
+ifeq ($(OS),SunOS)
+CPP.BaseFlags += -include llvm/System/Solaris.h
+endif
+
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
# All -I flags should go here, so that they don't confuse llvm-config.