mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-25 01:35:17 +00:00
Adding support for Amazon Linux
This commit is contained in:
parent
2a8df6ee02
commit
bea50da690
2 changed files with 28 additions and 1 deletions
22
0003-amazon-triples.patch
Normal file
22
0003-amazon-triples.patch
Normal file
|
@ -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" };
|
|
@ -47,7 +47,7 @@ Obsoletes: pure <= 0.55
|
||||||
|
|
||||||
Name: llvm
|
Name: llvm
|
||||||
Version: 3.4
|
Version: 3.4
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: The Low Level Virtual Machine
|
Summary: The Low Level Virtual Machine
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
@ -69,6 +69,7 @@ Source11: llvm-Config-llvm-config.h
|
||||||
# patches
|
# patches
|
||||||
Patch1: 0001-data-install-preserve-timestamps.patch
|
Patch1: 0001-data-install-preserve-timestamps.patch
|
||||||
Patch2: 0002-linker-flags-speedup-memory.patch
|
Patch2: 0002-linker-flags-speedup-memory.patch
|
||||||
|
Patch3: 0003-amazon-triples.patch
|
||||||
|
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
|
@ -295,6 +296,7 @@ mv lldb-%{version} tools/lldb
|
||||||
|
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
# fix library paths
|
# fix library paths
|
||||||
sed -i 's|/lib /usr/lib $lt_ld_extra|%{_libdir} $lt_ld_extra|' ./configure
|
sed -i 's|/lib /usr/lib $lt_ld_extra|%{_libdir} $lt_ld_extra|' ./configure
|
||||||
|
@ -663,6 +665,9 @@ exit 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 23 2014 Dave Johansen <davejohansen@gmail.com> 3.4-10
|
||||||
|
- Adding support for Amazon Linux
|
||||||
|
|
||||||
* Wed Feb 05 2014 Dave Johansen <davejohansen@gmail.com> 3.4-9
|
* Wed Feb 05 2014 Dave Johansen <davejohansen@gmail.com> 3.4-9
|
||||||
- Removing specification of targets
|
- Removing specification of targets
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue