diff --git a/0003-amazon-triples.patch b/0003-amazon-triples.patch new file mode 100644 index 0000000..563042f --- /dev/null +++ b/0003-amazon-triples.patch @@ -0,0 +1,22 @@ +--- a/tools/clang/lib/Driver/ToolChains.cpp ++++ b/tools/clang/lib/Driver/ToolChains.cpp +@@ -1124,7 +1124,8 @@ + static const char *const X86_64Triples[] = { + "x86_64-linux-gnu", "x86_64-unknown-linux-gnu", "x86_64-pc-linux-gnu", + "x86_64-redhat-linux6E", "x86_64-redhat-linux", "x86_64-suse-linux", +- "x86_64-manbo-linux-gnu", "x86_64-linux-gnu", "x86_64-slackware-linux" ++ "x86_64-manbo-linux-gnu", "x86_64-linux-gnu", "x86_64-slackware-linux", ++ "x86_64-amazon-linux" + }; + static const char *const X86LibDirs[] = { "/lib32", "/lib" }; + static const char *const X86Triples[] = { +@@ -1131,7 +1132,8 @@ + "i686-linux-gnu", "i686-pc-linux-gnu", "i486-linux-gnu", "i386-linux-gnu", + "i386-redhat-linux6E", "i686-redhat-linux", "i586-redhat-linux", + "i386-redhat-linux", "i586-suse-linux", "i486-slackware-linux", +- "i686-montavista-linux" ++ "i686-montavista-linux", ++ "i686-amazon-linux" + }; + + static const char *const MIPSLibDirs[] = { "/lib" }; diff --git a/llvm.spec b/llvm.spec index 6073a67..e80d080 100644 --- a/llvm.spec +++ b/llvm.spec @@ -47,7 +47,7 @@ Obsoletes: pure <= 0.55 Name: llvm Version: 3.4 -Release: 9%{?dist} +Release: 10%{?dist} Summary: The Low Level Virtual Machine Group: Development/Languages @@ -69,6 +69,7 @@ Source11: llvm-Config-llvm-config.h # patches Patch1: 0001-data-install-preserve-timestamps.patch Patch2: 0002-linker-flags-speedup-memory.patch +Patch3: 0003-amazon-triples.patch BuildRequires: bison BuildRequires: chrpath @@ -295,6 +296,7 @@ mv lldb-%{version} tools/lldb %patch1 -p1 %patch2 -p1 +%patch3 -p1 # fix library paths sed -i 's|/lib /usr/lib $lt_ld_extra|%{_libdir} $lt_ld_extra|' ./configure @@ -663,6 +665,9 @@ exit 0 %endif %changelog +* Wed Apr 23 2014 Dave Johansen 3.4-10 +- Adding support for Amazon Linux + * Wed Feb 05 2014 Dave Johansen 3.4-9 - Removing specification of targets