rpms/llvm/F-10 llvm-2.5-gcc44.patch, NONE, 1.1 .cvsignore, 1.4, 1.5 llvm.spec, 1.10, 1.11 sources, 1.5, 1.6
Michel Alexandre Salim
salimma at fedoraproject.org
Sat Aug 22 18:30:05 UTC 2009
Author: salimma
Update of /cvs/pkgs/rpms/llvm/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11709/F-10
Modified Files:
.cvsignore llvm.spec sources
Added Files:
llvm-2.5-gcc44.patch
Log Message:
* Sat Aug 22 2009 Michel Salim <salimma at fedoraproject.org> - 2.5-4
- Disable use of position-independent code on 32-bit platforms
(buggy in LLVM <= 2.5)
llvm-2.5-gcc44.patch:
Signals.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- NEW FILE llvm-2.5-gcc44.patch ---
--- llvm-2.5/lib/System/Unix/Signals.inc.gcc44 2008-12-05 18:39:24.000000000 -0500
+++ llvm-2.5/lib/System/Unix/Signals.inc 2009-03-04 13:56:32.804820443 -0500
@@ -78,7 +78,7 @@
for (int i = 0; i < depth; ++i) {
Dl_info dlinfo;
dladdr(StackTrace[i], &dlinfo);
- char* name = strrchr(dlinfo.dli_fname, '/');
+ const char* name = strrchr(dlinfo.dli_fname, '/');
int nwidth;
if (name == NULL) nwidth = strlen(dlinfo.dli_fname);
@@ -93,7 +93,7 @@
fprintf(stderr, "%-3d", i);
- char* name = strrchr(dlinfo.dli_fname, '/');
+ const char* name = strrchr(dlinfo.dli_fname, '/');
if (name == NULL) fprintf(stderr, " %-*s", width, dlinfo.dli_fname);
else fprintf(stderr, " %-*s", width, name+1);
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/llvm/F-10/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- .cvsignore 19 Jun 2008 02:48:35 -0000 1.4
+++ .cvsignore 22 Aug 2009 18:30:05 -0000 1.5
@@ -1 +1 @@
-llvm-2.3.tar.gz
+llvm-2.5.tar.gz
Index: llvm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/llvm/F-10/llvm.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- llvm.spec 5 Mar 2009 01:25:55 -0000 1.10
+++ llvm.spec 22 Aug 2009 18:30:05 -0000 1.11
@@ -14,7 +14,7 @@
%define debug_package %{nil}
Name: llvm
-Version: 2.4
+Version: 2.5
Release: 4%{?dist}
Summary: The Low Level Virtual Machine
@@ -23,10 +23,12 @@ License: NCSA
URL: http://llvm.org/
Source0: http://llvm.org/releases/%{version}/llvm-%{version}.tar.gz
%if %{?_with_gcc:1}%{!?_with_gcc:0}
-Source1: http://llvm.org/releases/%{version}/llvm-gcc%{lgcc_version}-%{version}.source.tar.gz
+Source1: http://llvm.org/releases/%{version}/llvm-gcc-%{lgcc_version}-%{version}.source.tar.gz
%endif
Patch0: llvm-2.1-fix-sed.patch
Patch1: llvm-2.4-fix-ocaml.patch
+# http://llvm.org/bugs/show_bug.cgi?id=3726
+Patch2: llvm-2.5-gcc44.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
@@ -143,9 +145,12 @@ for developing applications that use %{n
%patch0 -p1 -b .fix-sed
%patch1 -p1 -b .fix-ocaml
+%patch2 -p1 -b .gcc44
%build
# Note: --enable-pic can be turned off when 2.6 comes out
+# and up to 2.5, unsafe on 32-bit archs (in our case,
+# anything but x86_64)
%configure \
--libdir=%{_libdir}/%{name} \
--datadir=%{_datadir}/%{name}-%{version} \
@@ -154,8 +159,9 @@ for developing applications that use %{n
--enable-debug-runtime \
--enable-jit \
--enable-optimized \
- --enable-pic \
- --with-pic
+%ifarch x86_64
+ --enable-pic
+%endif
# --enable-targets=host-only \
make %{_smp_mflags} OPTIMIZE_OPTION='%{optflags}'
@@ -346,6 +352,10 @@ rm -rf %{buildroot}
%changelog
+* Sat Aug 22 2009 Michel Salim <salimma at fedoraproject.org> - 2.5-4
+- Disable use of position-independent code on 32-bit platforms
+ (buggy in LLVM <= 2.5)
+
* Wed Mar 4 2009 Michel Salim <salimma at fedoraproject.org> - 2.4-4
- Remove build scripts; they require the build directory to work
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/llvm/F-10/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- sources 14 Dec 2008 16:01:03 -0000 1.5
+++ sources 22 Aug 2009 18:30:05 -0000 1.6
@@ -1 +1 @@
-bf43eee98c364fd79c7d2b72e645a15e llvm-2.4.tar.gz
+55df2ea8665c8094ad2ef85187b9fc74 llvm-2.5.tar.gz
More information about the fedora-extras-commits
mailing list